Add the ability to track GPU allocations#628
Draft
jrmuizel wants to merge 2 commits into
Draft
Conversation
Collaborator
Author
|
Here's an example profile: https://share.firefox.dev/40np7SB |
Owner
|
What flags did you pass to xperf to get the D3DUmdLogging/MapAllocation events? |
Owner
|
Jeff told me in person that he was using GPUView to record this trace, and that he needed to include allocation stacks. |
Collaborator
Author
|
Here's my patch to log.cmd: --- log.cmd 2023-06-14 20:28:42.000000000 +0000
+++ log-umd-stack.cmd 2025-07-15 22:31:15.978689700 +0000
@@ -58,7 +58,7 @@
set TRACE_DXC_NORMAL=%TRACE_DXC%:0x900236:5
set TRACE_DXC_VERBOSE=%TRACE_DXC%:0x80900236:5
set TRACE_DXC_STACKS=%TRACE_DXC%:0x208041:5:'stack'
-set TRACE_UMD=a688ee40-d8d9-4736-b6f9-6b74935ba3b1:0xffff:5
+set TRACE_UMD=a688ee40-d8d9-4736-b6f9-6b74935ba3b1:0xffff:5:'stack'
set TRACE_DWM=a42c77db-874f-422e-9b44-6d89fe2bd3e5:0x000000007fffffff:0x5
set TRACE_DWM2=8c9dd1ad-e6e5-4b07-b455-684a9d879900:0xFFFF:6
set TRACE_DWM3=9e9bba3c-2e38-40cb-99f4-9e8281425164:0xFFFF:6 |
Collaborator
Author
|
Which probably would work with something like: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This works but I'm not inclined to have it land because the current allocation system is global and so if you're tracking GPU allocations you can't track any other kind of allocations.