wiki:WebKitFlatpakSDK/DebugWithApitrace

Version 1 (modified by Philippe Normand, 2 years ago) (diff)

--

Debugging GL with apitrace

Apitrace allows to trace GL calls and replay them.

Using apitrace with the SDK

The Flatpak SDK already provides apitrace. You don't need to install it on your host machine. To record a trace, use this command:

$ WEB_PROCESS_CMD_PREFIX="apitrace trace" run-minibrowser --gtk http://webglsamples.org/aquarium/aquarium.html

Then to inspect the trace:

$ webkit-flatpak -c qapitrace WebKitWebProcess.trace

This doesn't work yet with WPE, due to a yet-to-debug issue in libepoxy.