In some scenarios it might be desirable to not use GammaRay's dynamic injection mechanism, but to build the GammaRay probe into the target application at compile time already. Static linking is one such use-case, as dynamic injection doesn't work then.
There are two ways available to integrate the probe into a target application:
-DGAMMARAY_STATIC_PROBE=ON
CMake option, add the GAMMARAY_STATIC_INJECT
macro to your application code and link the application against the GammaRay probe and all relevant plugins. See tests/manual/staticinjectiontest
in the GammaRay source code for an example.Be sure to review the licensing terms before distributing an application with GammaRay integrated permanently, in particular when using the open source version of GammaRay.
GammaRay can be extended with custom plugins. The main extension points for plugins are:
For more details on implementing GammaRay plugins, please refer to the API documentation.
The GammaRay Client can be integrated into integrated development environments (IDE). Such an integration is available for Qt Creator as part of the Qt Automotive Suite.
For more details on how to integrate the GammaRay client with and IDE, please see the API documentation.