9
$\begingroup$

I have been studying hardware corporation GPU profilers in recent days (Qualcomm, PowerVR, Intel). I've noticed that these tools seem to give more low-level details than the GPU profilers I have used in the past -- XCode's OpenGL ES frame capture and apitrace -- which only listed which OpenGL calls were made and what the state of current resources are.

How do I get started if I want to make a low-level tool that displays things like sampler cache misses and shader assembler code?

$\endgroup$

1 Answer 1

6
$\begingroup$

For basic GPU timing data, you can use D3D timestamp queries or the equivalent OpenGL timer queries.

Any low-level hardware data like cache misses is going to be extremely vendor-specific. Each GPU vendor has its own custom API or extension for giving access to low-level performance data on its hardware. The APIs vary in how they work, and they don't necessarily all expose the same details. The available data may also vary between different chip models within the same vendor, so you probably need to know a bit about how the hardware works to make sense of it.

Here are links to the relevant APIs for most of the main GPU vendors.

$\endgroup$
2
  • $\begingroup$ Oh awesome, I guess I should have dug a little deeper on the corporation websites. I assumed that since apitrace didn't offer these details, there was some sort of reversing going on. Thanks! $\endgroup$
    – user3412
    Commented May 24, 2016 at 6:06
  • $\begingroup$ oh I thought he wanted to write another perfkit. which the answer would be that it's not possible unless you make your own hardware. $\endgroup$
    – v.oddou
    Commented May 30, 2016 at 1:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.