protected void OnOpenTraceLogActionActivated(object sender, EventArgs e)
        {
            string file = TraceLogParser.TraceLogFile(IdeApp.ProjectOperations.CurrentSelectedProject as DProject);

            if (file != null)
            {
                IdeApp.Workbench.OpenDocument(new FilePath(file), true);
            }
        }
Exemple #2
0
        public IEnumerable <Metric> ProcessResults(DiagnoserResults results)
        {
            if (!benchmarkToEtlFile.TryGetValue(results.BenchmarkCase, out var traceFilePath))
            {
                return(Array.Empty <Metric>());
            }

            return(TraceLogParser.Parse(traceFilePath, benchmarkToCounters[results.BenchmarkCase]));
        }
Exemple #3
0
        public IEnumerable <Metric> ProcessResults(DiagnoserResults results)
        {
            if (!benchmarkToEtlFile.TryGetValue(results.BenchmarkCase, out var traceFilePath))
            {
                return(Array.Empty <Metric>());
            }

            // currently TraceLogParser parsers the counters metrics only. So if there are no counters configured, it makes no sense to parse the file
            if (!benchmarkToCounters.TryGetValue(results.BenchmarkCase, out var counters) || counters.IsEmpty())
            {
                return(Array.Empty <Metric>());
            }

            return(TraceLogParser.Parse(traceFilePath, counters));
        }
Exemple #4
0
 public DProfilerPad()
 {
     widget = new ProfilerPadWidget(this);
     TraceParser = new TraceLogParser(widget);
 }
Exemple #5
0
 public DProfilerPad()
 {
     widget      = new ProfilerPadWidget(this);
     TraceParser = new TraceLogParser(widget);
 }