diff options
author | Colin Walters <walters@verbum.org> | 2010-04-01 16:21:56 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-05-28 09:27:05 -0400 |
commit | 38281cc832aa8eb49ce9adbbe19bcf5ccbab4caf (patch) | |
tree | 5cf35abb91c7b0e3a8f69a68c1d1bccdd79c691c /gjs | |
parent | 7dada73f134407b6e08fd4cea3fe8a30cf396636 (diff) | |
download | gjs-38281cc832aa8eb49ce9adbbe19bcf5ccbab4caf.tar.gz |
Add support for dtrace/SystemTap
Similar to the probes that will be added to glib,
this commit adds basic infrastructure for probes, and
a *very* limited set of probe points.
The current probe points just track proxies for GObjects; other
ideas for useful probes would be function invocations, boxed/structs,
etc.
https://bugzilla.gnome.org/show_bug.cgi?id=614619
Diffstat (limited to 'gjs')
-rw-r--r-- | gjs/gjs.stp.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gjs/gjs.stp.in b/gjs/gjs.stp.in new file mode 100644 index 00000000..4170f23e --- /dev/null +++ b/gjs/gjs.stp.in @@ -0,0 +1,18 @@ + +probe gjs.object_proxy_new = process("@EXPANDED_LIBDIR@/libgjs-gi.so.0.0.0").mark("object__proxy__new") +{ + proxy_address = $arg1; + gobject_address = $arg2; + gi_namespace = user_string($arg3); + gi_name = user_string($arg4); + probestr = sprintf("gjs.object_proxy_new(%p, %s, %s)", proxy_address, gi_namespace, gi_name); +} + +probe gjs.object_proxy_finalize = process("@EXPANDED_LIBDIR@/libgjs-gi.so.0.0.0").mark("object__proxy__finalize") +{ + proxy_address = $arg1; + gobject_address = $arg2; + gi_namespace = user_string($arg3); + gi_name = user_string($arg4); + probestr = sprintf("gjs.object_proxy_finalize(%p, %s, %s)", proxy_address, gi_namespace, gi_name); +} |