cull some duplicate profiling code, lame memory profiler