diff options
author | James Benton <jbenton@vmware.com> | 2012-08-06 18:04:56 +0100 |
---|---|---|
committer | James Benton <jbenton@vmware.com> | 2012-08-09 16:42:02 +0100 |
commit | 5b670de5bcc9fa64b16bde462c0aa38ca03999c8 (patch) | |
tree | 9b4666e20c8c5bb6eeee62ba03551108ca120579 /README.markdown | |
parent | 3223b1d6ce831bed7db99651f787cf0e827bd8b1 (diff) |
Updated README with help for using new profiling options.
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown index 9702ba07..cdd5dd8a 100644 --- a/README.markdown +++ b/README.markdown @@ -312,8 +312,8 @@ You can make a video of the output by doing | ffmpeg -r 30 -f image2pipe -vcodec ppm -i pipe: -vcodec mpeg4 -y output.mp4 -Triming a trace ---------------- +Trimming a trace +---------------- You can make a smaller trace by doing: @@ -324,6 +324,26 @@ individual call numbers a plaintext file, as described in the 'Call sets' section above. +Profiling a trace +----------------- + +You can perform gpu and cpu profiling with the command line options: + + * `-pgpu` record gpu times for frames and draw calls. + + * `-pcpu` record cpu times for frames and draw calls. + + * `-ppd` record pixels drawn for each draw call. + +The results from this can then be read by hand or analysed with a script. + +scripts/profileshader.py will read the profile results and format them into a +table which displays profiling results per shader. + +For example, to record all profiling data and utilise the per shader script: + ./glretrace -pgpu -pcpu -ppd foo.trace | ./scripts/profileshader.py + + Advanced usage for OpenGL implementors ====================================== |