started on "perf.c", a more general performance-tracking structure