1 function process(name,calls,time) {
2 if (! name in data_calls ) {
6 data_calls[name] = data_calls[name] + calls;
7 data_time[name] = data_time[name] + time;
9 # ----------------------------------------------
10 ($1 == "!!") { process($2,$3,$4); }
12 printf "%40s %10s %s\n", "name", "calls", "time";
13 for (i in data_time) {
14 printf "%40s %10d %03.3f %.8f\n", i, data_calls[i], data_time[i], data_time[i]/ data_calls[i];