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); } }
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])); }
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)); }
public DProfilerPad() { widget = new ProfilerPadWidget(this); TraceParser = new TraceLogParser(widget); }