示例#1
0
        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();
        }
示例#2
0
        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();
        }
示例#3
0
        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();
        }