summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2020-08-21 08:39:12 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2020-08-21 08:39:12 +0000
commita1a8016553350c2f24ba08c6e0716760923fd5e6 (patch)
tree4126fadaee6f9bffa0f5ca1de0ad61c05b08971a
parent46a12eaf23432c1bf591087dc14a5b0f6e184ac8 (diff)
parent5620828f4735eb0561fa7af498efc6f45721d062 (diff)
downloadglib-a1a8016553350c2f24ba08c6e0716760923fd5e6.tar.gz
Merge branch 'thread-trace' into 'master'
gthread: Add a sysprof mark for thread creation See merge request GNOME/glib!1627
-rw-r--r--glib/gthread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/glib/gthread.c b/glib/gthread.c
index 34f9c21b2..53f3a0848 100644
--- a/glib/gthread.c
+++ b/glib/gthread.c
@@ -58,6 +58,7 @@
#include "gstrfuncs.h"
#include "gtestutils.h"
#include "glib_trace.h"
+#include "gtrace-private.h"
/**
* SECTION:threads
@@ -920,6 +921,7 @@ g_thread_new_internal (const gchar *name,
g_atomic_int_inc (&g_thread_n_created_counter);
+ g_trace_mark (G_TRACE_CURRENT_TIME, 0, "GLib", "GThread created", "%s", name ? name : "(unnamed)");
return (GThread *) g_system_thread_new (proxy, stack_size, scheduler_settings,
name, func, data, error);
}