Memory profiler wrapper