Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Derived counters are device-level metrics? #83

Open
xcorrnner opened this issue Sep 19, 2024 · 1 comment
Open

Derived counters are device-level metrics? #83

xcorrnner opened this issue Sep 19, 2024 · 1 comment

Comments

@xcorrnner
Copy link

xcorrnner commented Sep 19, 2024

I found that derived "public" counters based on raw hardware counters.
Are derived counters are device-level metrics?
if I sample on a per-frame basis and correlate the data to a given frame, will the data be accurate?
Is there a way to record performance metrics at a specified frequency without intrumenting workloads of interest

@PLohrmannAMD
Copy link
Contributor

PLohrmannAMD commented Jan 10, 2025

Hi xcornner, sorry I missed your message when you submitted it.

The derived counter results are device-level, but also specific to the application being profiled. If you start a counter sample at the beginning of the frame, do the necessary calls to continue the sample across all the command lists, then end the sample at the end of the frame, you should correctly get results that correlate with that specific frame.

The best way to see perf metrics sampled at a specified frequency is to use Microsoft PIX to take a capture of the application, then use our integration into the PIX for Windows interface to view the Timeline Counters (aka High Frequency Counters) along the bottom of the UI. This will actually allow you to see perf counter results mid-draw call, as well as throughout the frame.
See: https://devblogs.microsoft.com/pix/hardware-counters-in-gpu-captures/#highfrequencycounters

PIX for Windows can support up to a 10 frame capture by default, so you can see how those metrics change through an effect rendering, etc. The settings in PIX do allow you to expand that to a greater number of frames if needed, but UI responsiveness may be affected as the number of frames increases.
 
Please let me know if I can provide additional assistance!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants