Finished perf.c/perf.h. Check perf.c header for usage.