Ejemplo n.º 1
0
def print_profile():
    data = []
    data.extend(clr.GetProfilerData())
    data.sort(lambda x, y: -cmp(x.ExclusiveTime, y.ExclusiveTime))

    for pd in data:
        say('%s\t%d\t%d\t%d', pd.Name, pd.InclusiveTime, pd.ExclusiveTime, pd.Calls)
Ejemplo n.º 2
0
 def print_profile(self):
     for p in clr.GetProfilerData():
         print '%s\t%d\t%d\t%d' % (p.Name, p.InclusiveTime, p.ExclusiveTime,
                                   p.Calls)