Exemplo n.º 1
0
        void AppendCounter(TreeIter parent, TimerCounter c)
        {
            TreeIter it;

            if (parent.Equals(TreeIter.Zero))
            {
                it = store.AppendValues(c.GetIcon(), c.Name, c.Count, (float)c.TotalTime.TotalMilliseconds, (float)c.AverageTime.TotalMilliseconds, (float)c.MinTime.TotalMilliseconds, (float)c.MaxTime.TotalMilliseconds, false, c, null, true, true, normalColor);
            }
            else
            {
                it = store.AppendValues(parent, c.GetIcon(), c.Name, c.Count, (float)c.TotalTime.TotalMilliseconds, (float)c.AverageTime.TotalMilliseconds, (float)c.MinTime.TotalMilliseconds, (float)c.MaxTime.TotalMilliseconds, false, c, null, true, true, normalColor);
            }

            // Dummy node
            store.AppendValues(it, null, "*");
        }
Exemplo n.º 2
0
 void AppendValues(TreeIter parent, TimerCounter c)
 {
     Gdk.Pixbuf icon = c.GetIcon();
     foreach (CounterValue val in c.GetValues().Where(val => val.HasTimerTraces))
     {
         string msg = !string.IsNullOrEmpty(val.Message) ? val.Message : c.Name;
         store.AppendValues(parent, icon, msg, val.Value, (float)val.Duration.TotalMilliseconds, 0f, 0f, 0f, false, null, val, true, true, val.GetTimeColor(c));
     }
 }