profiler: Add missing call to stop profiling

Otherwise the profiling backend (cogl-trace.c) doesn't actually stop,
and will complain if we try to start it up again.

Fixes: ab39eaf131 ("cogl/trace: Make global start/stop more explicit")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3068>
This commit is contained in:
Jonas Ådahl 2023-06-12 11:52:32 +02:00 committed by Marge Bot
parent d65883e0d7
commit bea2fdc12b

View File

@ -196,6 +196,8 @@ handle_stop (MetaDBusSysprof3Profiler *dbus_profiler,
g_list_free_full (profiler->threads, (GDestroyNotify) thread_info_free);
g_mutex_unlock (&profiler->mutex);
cogl_stop_tracing ();
profiler->running = FALSE;
g_debug ("Stopping profiler");