public static void RefreshTraceLog() { Pad pad = IdeApp.Workbench.GetPad <DProfilerPad>(); if (pad == null || !(pad.Content is DProfilerPad)) { return; } DProfilerPad profilerPad = (DProfilerPad)pad.Content; if (ProfilerModeHandler.IsProfilerMode) { pad.Visible = true; } profilerPad.AnalyseTraceFile(); }
public ProfilerPadWidget(DProfilerPad pad) { profilerPad = pad; this.Build (); traceFunctionsStore = new ListStore (typeof(long), typeof(long), typeof(long), typeof(long), typeof(string), typeof(DNode)); TreeModelSort cardSort = new TreeModelSort (traceFunctionsStore); nodeView.Model = cardSort; AddColumn("Num Calls", 0); AddColumn("Tree Time [µs]", 1); AddColumn("Func Time [µs]", 2); AddColumn("Per Call", 3); AddColumn("Func Symbol", 4); nodeView.ShowAll(); RefreshSwitchProfilingIcon(); }
public ProfilerPadWidget(DProfilerPad pad) { profilerPad = pad; this.Build(); traceFunctionsStore = new ListStore(typeof(long), typeof(long), typeof(long), typeof(long), typeof(string), typeof(DNode)); TreeModelSort cardSort = new TreeModelSort(traceFunctionsStore); nodeView.Model = cardSort; AddColumn("Num Calls", 0); AddColumn("Tree Time [µs]", 1); AddColumn("Func Time [µs]", 2); AddColumn("Per Call", 3); AddColumn("Func Symbol", 4); nodeView.ShowAll(); RefreshSwitchProfilingIcon(); }