public BacktraceTabulator ( Profile, p, int context_data ) : System | ||
p | Profile, | |
context_data | int | |
return | System |
public BacktraceTabulator(Profile p, int [] context_data)
{
this.p = p;
nodes = new Hashtable ();
type_nodes = new ArrayList ();
for (int i = 0; i < context_data.Length; i ++) {
if (context_data [i] == 0)
continue;
Context c = p.GetContext (i);
int [] bt = p.GetBacktrace (c.Backtrace);
LookupNode (c.Type, bt, bt.Length).RecordAlloc (context_data [i], context_data [i] * c.Size);
total_size += total_size;
}
SortRecursive (type_nodes);
}