added profiling prototype to stats.c