2 * $Header: /cvs/sw/new-wave/user/tpt/massage.c,v 1.1 2002-02-14 23:04:55 pauli Exp $
11 * Convert cycles to nSecs and calculate averages
15 massage_graph(unsigned long mhz, tpt_node *tpt_list)
19 for (node = tpt_list; node; node = node->next)
23 for (succ_no = 0; succ_no < node->nr_succs; succ_no++)
25 struct timepeg_arc *arc = &node->succs[succ_no];
27 arc->tot_tp = arc->avg_tp;
31 arc->avg_tp /= arc->nr_times;
58 * Overwrite any whitespace in identifiers with "_" so the output of
59 * tpt is easier to sort (with 'sort -n +7', for example).
63 rename_nodes(tpt_node *tpt_list)
67 for (node = tpt_list; node; node = node->next)