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:
parent
d65883e0d7
commit
bea2fdc12b
1 changed files with 2 additions and 0 deletions
|
@ -196,6 +196,8 @@ handle_stop (MetaDBusSysprof3Profiler *dbus_profiler,
|
||||||
g_list_free_full (profiler->threads, (GDestroyNotify) thread_info_free);
|
g_list_free_full (profiler->threads, (GDestroyNotify) thread_info_free);
|
||||||
g_mutex_unlock (&profiler->mutex);
|
g_mutex_unlock (&profiler->mutex);
|
||||||
|
|
||||||
|
cogl_stop_tracing ();
|
||||||
|
|
||||||
profiler->running = FALSE;
|
profiler->running = FALSE;
|
||||||
|
|
||||||
g_debug ("Stopping profiler");
|
g_debug ("Stopping profiler");
|
||||||
|
|
Loading…
Reference in a new issue