Profiling native memory usage