Changes between Initial Version and Version 1 of WebKitFlatpakSDK/DebugWithApitrace


Ignore:
Timestamp:
Oct 6, 2021, 3:07:56 AM (3 years ago)
Author:
Philippe Normand
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebKitFlatpakSDK/DebugWithApitrace

    v1 v1  
     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
     9The 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
     16Then to inspect the trace:
     17
     18{{{
     19#!sh
     20$ webkit-flatpak -c qapitrace WebKitWebProcess.trace
     21}}}
     22
     23This doesn't work yet with WPE, due to a yet-to-debug issue in libepoxy.