We need built-in a memory usage profiling tools that will show runtime memory usage for applications. The profiling APIs support three kinds of profiling:
Scope-based profiling: the API behaves like begin_event/end_event for API, and will capture all memory allocations in the call stack between these two functions.
Allocation-based profiling: Mask runtime allocated memory with a specific category, so that the system knows the usage for the memory.
Manual: attach arbitrary memory to the specified category directly. This can also used to track external-allocated memory like video memory. The user should call add_memory/remove_memory manually on allocation and deallocation.
We need built-in a memory usage profiling tools that will show runtime memory usage for applications. The profiling APIs support three kinds of profiling:
begin_event
/end_event
for API, and will capture all memory allocations in the call stack between these two functions.add_memory
/remove_memory
manually on allocation and deallocation.