understanding GPU process allocations

180 views
Skip to first unread message

Joe Laughlin

unread,
Feb 10, 2020, 4:56:57 PM2/10/20
to chromi...@chromium.org, Bruce Dawson

Hello everyone,

 

I’m trying to understand GPU process allocations. ETW tracing on Windows isn’t much help as the abstractions hide the details on why and for what allocations are being made. I found some code around GPU_Tracer, which seems to be an extension described in this folder, gpu\GLES2\extensions\CHROMIUM, in file CHROMIUM_trace_marker.txt. This may be a red herring.

 

In the end, is there any tracing that will make it easier to understand the reasons GPU allocations are made, such as what web page and item (pict, etc.) is responsible?

Erik Chen

unread,
Feb 10, 2020, 5:04:19 PM2/10/20
to Joe Laughlin, chromi...@chromium.org, Bruce Dawson
Try chrome://tracing with the memory-infra category. The GPU MemoryDumpProvider, along with cc should contain a lot more information of the type you're looking for.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/BY5PR00MB065927F44612AF881E08BB26CD190%40BY5PR00MB0659.namprd00.prod.outlook.com.

Robert Kroeger

unread,
Feb 11, 2020, 10:19:13 AM2/11/20
to Erik Chen, Jonathan Ross, Joe Laughlin, chromi...@chromium.org, Bruce Dawson
+Jonathan Ross to comment as he is actively working on improving GPU memory tracking

Joe Laughlin

unread,
Feb 11, 2020, 12:36:54 PM2/11/20
to rjkr...@chromium.org, Erik Chen, Jonathan Ross, Rafael Cintron, chromi...@chromium.org, Bruce Dawson

+Rafael also

 

Jonathon, one thing to consider is the use of the annotation info for D2D/D3D allocations. It shows up in ETW and the debugger and can make understanding lifetime issues much easier.

Joe Laughlin

unread,
Feb 13, 2020, 1:03:52 PM2/13/20
to rjkr...@chromium.org, Erik Chen, Jonathan Ross, Rafael Cintron, chromi...@chromium.org, Bruce Dawson

Is it possible to get the chrome trace to show the allocation stack? I can’t seem to get that info.

Erik Chen

unread,
Feb 13, 2020, 1:25:27 PM2/13/20
to Joe Laughlin, rjkr...@chromium.org, Jonathan Ross, Rafael Cintron, chromi...@chromium.org, Bruce Dawson
Allocation stacks are tracked separately via memlog, see instructions here. Some details on how to use the UI here. Symbolization instructions here

The Woodpecker

unread,
Oct 31, 2022, 4:03:56 PM10/31/22
to chromi...@chromium.org
Reply all
Reply to author
Forward
0 new messages