14 if 'tav' in l
and 'node: 0 parent: 0' in l:
15 result.append(float(l[:-1].
split()[-1]))
20if __name__ ==
'__main__':
23 print(
'Please supply an input file name on the command line')
28 if not os.path.exists(fn):
29 print(
'unknown file. giving up: ', fn)
34 pl.suptitle(
'Execution times for %s' % fn)
35 pl.xlabel(
'time (ns)')
36 pl.ylabel(
'no of calls')
37 pl.savefig(
'%s_times.pdf' % fn[:-4])
void print(char *figname, TCanvas *c1)
std::vector< std::string > split(const std::string &s, const std::string &t=":")