diff options
author | Jonas Ã…dahl <jadahl@gmail.com> | 2018-05-15 16:31:29 +0100 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-05-31 11:55:56 -0300 |
commit | e5e58f80754bf5874c6e4741687400f1bf75d99b (patch) | |
tree | a96a00109315e40360053fc321958f2f676d1b50 /meson_options.txt | |
parent | 1da0355528dc8eb06aef0f995f203a484840947d (diff) | |
download | mutter-e5e58f80754bf5874c6e4741687400f1bf75d99b.tar.gz |
cogl: Add libsysprof capture based tracing
Add the ability to add tracing instrumentation to the code. When
enabled, trace entries will generate a file with timing information
that will be processable by sysprof for generating visualization of
traces over time.
While enabled by default at compile time, it is possible to disable the
expansion of the macros completely by passing --disable-tracing to
./configure.
Tracing is so far only actually done if actually enabled on explicitly
specified threads.
This will be used by Mutter passing the write end of a pipe, where the
read end is sent to Sysprof itself via the D-Bus method 'Capture()'.
By passing that, we have to detect EPIPE that is sent when Sysprof stops
recording. Fortunately, we already ignore the signal at meta_init(), so
no need to add a custom signal handler.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/197
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 1e122300e..73aa7adde 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -123,6 +123,12 @@ option('tests', description: 'Enable tests globally. Specific test suites can be controlled with core_tests, clutter_tests, and cogl_tests' ) +option('profiler', + type: 'boolean', + value: true, + description: 'Enable Sysprof tracing' +) + option('installed_tests', type: 'boolean', value: true, |