Esempio n. 1
0
        private CommandTreeNode CreateLocalTracesCommands(IAppMainView mainView)
        {
            var command = new CommandTreeNode
            {
                ImageIndex         = 11,
                SelectedImageIndex = 11,
                Text        = "Local Traces",
                ToolTipText = "In-Memory Traces",
            };

            command.Nodes.Add(new CommandTreeNode
            {
                ImageIndex         = 2,
                SelectedImageIndex = 2,
                Text        = "View Memory Traces",
                ToolTipText = "View In-Memory Traces",
                Command     = new ViewMemoryTracesCommand(mainView, this, memoryRepository)
            });

            command.Nodes.Add(new CommandTreeNode
            {
                ImageIndex         = 3,
                SelectedImageIndex = 3,
                Text        = "Clear Memory Traces",
                ToolTipText = "Clear In-Memory Traces",
                Command     = new ClearMemoryTracesCommand(mainView, memoryRepository)
            });

            return(command);
        }
Esempio n. 2
0
        private CommandTreeNode CreateLocalProfilingCommands(IAppMainView mainView)
        {
            var command = new CommandTreeNode
            {
                ImageIndex         = 6,
                SelectedImageIndex = 6,
                Text        = "Profiling",
                ToolTipText = "Local Profiling",
            };

            command.Nodes.Add(new CommandTreeNode
            {
                ImageIndex         = 7,
                SelectedImageIndex = 7,
                Text        = "Start Profiling",
                ToolTipText = "Start the Local Profiling Server",
                Command     = new StartProfilingCommand(mainView, traceServerService)
            });

            command.Nodes.Add(new CommandTreeNode
            {
                ImageIndex         = 8,
                SelectedImageIndex = 8,
                Text        = "Stop Profiling",
                ToolTipText = "Stop the Local Profiling Server",
                Command     = new StopProfilingCommand(mainView, traceServerService)
            });

            return(command);
        }
Esempio n. 3
0
        private CommandTreeNode CreateRemoteTracesCommands(IAppMainView mainView)
        {
            var command = new CommandTreeNode
            {
                ImageIndex         = 10,
                SelectedImageIndex = 10,
                Text        = "Remote Traces",
                ToolTipText = "Saved Traces (Database or FileSystem)",
            };

            command.Nodes.Add(new CommandTreeNode
            {
                ImageIndex         = 4,
                SelectedImageIndex = 4,
                Text        = "View Database Traces",
                ToolTipText = "Remote Database Traces",
                Command     = new ViewDatabaseTracesCommand(mainView, this)
            });

            command.Nodes.Add(new CommandTreeNode
            {
                ImageIndex         = 5,
                SelectedImageIndex = 5,
                Text        = "View File Traces",
                ToolTipText = "FileSystem Traces",
                Command     = new ViewFileTracesCommand(mainView, this)
            });

            return(command);
        }
Esempio n. 4
0
        public CommandTreeNode GetApplicationRootCommand(IAppMainView mainView)
        {
            var rootNode = new CommandTreeNode
            {
                ImageIndex         = 0,
                SelectedImageIndex = 0,
                Text        = "Dashboard",
                ToolTipText = "Dashboard"
            };

            rootNode.Nodes.Add(CreateInstrumentationCommands(mainView));
            rootNode.Nodes.Add(CreateLocalTracesCommands(mainView));
            rootNode.Nodes.Add(CreateRemoteTracesCommands(mainView));
            rootNode.Nodes.Add(CreateLocalProfilingCommands(mainView));
            return(rootNode);
        }
Esempio n. 5
0
        private CommandTreeNode CreateInstrumentationCommands(IAppMainView mainView)
        {
            var command = new CommandTreeNode {
                ImageIndex         = 9,
                SelectedImageIndex = 9,
                Text        = "Instrumentation",
                ToolTipText = "Instrumentation"
            };

            command.Nodes.Add(new CommandTreeNode {
                ImageIndex         = 1,
                SelectedImageIndex = 1,
                Text        = "Instrument Assembly",
                ToolTipText = "Instrument an Assembly (exe/dll)",
                Command     = new ViewInstrumentationCommand(mainView, this)
            });

            return(command);
        }
Esempio n. 6
0
 public StopProfilingCommand(IAppMainView view, ITraceServerService traceService)
 {
     this.view         = view;
     this.traceService = traceService;
 }
 public ViewInstrumentationCommand(IAppMainView view, IApplicationFactory factory)
 {
     this.view    = view;
     this.factory = factory;
 }
Esempio n. 8
0
 public ClearMemoryTracesCommand(IAppMainView view, IWritableRepository memoryRepository)
 {
     this.view             = view;
     this.memoryRepository = memoryRepository;
 }
Esempio n. 9
0
 public ViewDatabaseTracesCommand(IAppMainView view, IApplicationFactory factory)
 {
     this.view    = view;
     this.factory = factory;
 }
Esempio n. 10
0
 public ViewMemoryTracesCommand(IAppMainView view, IApplicationFactory factory, IReadableRepository memoryRepository)
 {
     this.view             = view;
     this.factory          = factory;
     this.memoryRepository = memoryRepository;
 }