| 1 | [[PageOutline]] |
| 2 | |
| 3 | == Debugging GL with apitrace |
| 4 | |
| 5 | [https://apitrace.github.io/ Apitrace] allows to trace GL calls and replay them. |
| 6 | |
| 7 | === Using apitrace with the SDK |
| 8 | |
| 9 | The Flatpak SDK already provides apitrace. You don't need to install it on your host machine. To record a trace, use this command: |
| 10 | |
| 11 | {{{ |
| 12 | #!sh |
| 13 | $ WEB_PROCESS_CMD_PREFIX="apitrace trace" run-minibrowser --gtk http://webglsamples.org/aquarium/aquarium.html |
| 14 | }}} |
| 15 | |
| 16 | Then to inspect the trace: |
| 17 | |
| 18 | {{{ |
| 19 | #!sh |
| 20 | $ webkit-flatpak -c qapitrace WebKitWebProcess.trace |
| 21 | }}} |
| 22 | |
| 23 | This doesn't work yet with WPE, due to a yet-to-debug issue in libepoxy. |