profiler: Add API to register profiler threads
The registered threads will get tracing turned on when MetaProfiler is started. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2998>
This commit is contained in:
@ -28,6 +28,10 @@
|
||||
#include "meta/meta-context.h"
|
||||
#include "wayland/meta-wayland-types.h"
|
||||
|
||||
#ifdef HAVE_PROFILER
|
||||
#include "core/meta-profiler.h"
|
||||
#endif
|
||||
|
||||
struct _MetaContextClass
|
||||
{
|
||||
GObjectClass parent_class;
|
||||
@ -79,4 +83,9 @@ META_EXPORT_TEST
|
||||
gboolean meta_context_is_x11_sync (MetaContext *context);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PROFILER
|
||||
MetaProfiler *
|
||||
meta_context_get_profiler (MetaContext *context);
|
||||
#endif
|
||||
|
||||
#endif /* META_CONTEXT_PRIVATE_H */
|
||||
|
Reference in New Issue
Block a user