google / gapid

Graphics API Debugger
https://gapid.dev
Apache License 2.0
2.21k stars 328 forks source link

ask for command line samples to do profiling using `gapit profile` command #3810

Open randomgraphics opened 4 years ago

randomgraphics commented 4 years ago

I was trying to analysis my game's performance using gapit profile command. GAPID seems like a very promising choice, since it seems has very powerful profiling support built into it.

Unfortunately, I found that the current document for gapit profile command is obscure at best, imo, for anyone that is new to GAPID at least.

After reading all docs I can find online about gapt, I still can't figure out how to make the profiling working form e.

Here's the command tried:

gapit profile -out a.txt a.gfxtrae

What I got is an empty csv file with only headers in it. The head contains column BeginCmd, EndCmd. I then searched the code base using string "BeginCmd" hoping it can bring me to the code where profiling is done. But still with no luck.

Can I ask for a command line sample of how to properly use this profile command to generate meaningful performance data? Like frame time, draw call time and etc.

Or at least can I ask for an document or maybe the source code where I can find more detailed explaination of how to use the profile command or list or arguments that I can try?

thanks a lot.

AWoloszyn commented 4 years ago

The profile command only works with Vulkan traces, not GLES traces. If this is a vulkan trace, then this is likely a bug.

randomgraphics commented 4 years ago

It is GLES capture. Is there plan to support it on GLES?