add a simple profiler class