Igalia / webkit-container-sdk

The all-in-one SDK for WebKit GTK/WPE port development.
MIT License
8 stars 4 forks source link

Sysprof support #25

Open GeorgesStavracas opened 1 month ago

GeorgesStavracas commented 1 month ago

When running apps with sysprof-cli and the Sysprof collector API (the WebKit use case, once the current WIP branch is finished), Sysprof sets the SYSPROF_CONTROL_FD file descriptor. This file descriptor is read by the Sysprof collector.

If this file descriptor can be mounted within the Podman container of the SDK, then we'll be able to use the profiler!

Sysprof also may set the SYSPROF_TRACE_FD fd, it might be worth passing it through too, but I'm not sure.