-
Notifications
You must be signed in to change notification settings - Fork 7
Profiling allocator GPU memory usage with GPGMM
Bryan B edited this page Feb 14, 2023
·
1 revision
GPU applications very typically rely on the ability to recycle larger OS allocated memory blocks by either sub-dividing them into smaller blocks or re-using the entire memory block once not being used. Because this happens by the application, above the OS, existing OS-level profiling tools are unable to accurately report memory usage without application-specific instrumentation. GPGMM provides this instrumentation to application developers.
GPGMM event tracing is able to report:
- Allocator performance and memory utilization metrics.
- Allocation lifetimes (static vs transient).
- Detailed API timings.
- Captured API calls for later (offline) playback.
To enable:
- Specify
ALLOCATOR_RECORD_FLAGS
option when creating the allocator. - Run the app, where upon termination, a captured trace file will be dumped to the current working directory.
- Navigate to
chrome://tracing
, click the load button, then select the trace file to view.