[sysprof] elf-symbol-resolver: add GObject Introspection tag



commit 8743dbd0c93a059b7e66bdf43121eeac397990f5
Author: Christian Hergert <christian hergert me>
Date:   Wed Apr 13 09:20:05 2016 -0700

    elf-symbol-resolver: add GObject Introspection tag
    
    When we see addresses in libgobject-introspection, give them the
    "Introspection" tag to make it clear which library the symbol came from.
    This is particularly useful since so many functions overlap with g_
    prefixes.

 lib/sp-elf-symbol-resolver.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/sp-elf-symbol-resolver.c b/lib/sp-elf-symbol-resolver.c
index 2c7cf23..c034378 100644
--- a/lib/sp-elf-symbol-resolver.c
+++ b/lib/sp-elf-symbol-resolver.c
@@ -162,6 +162,9 @@ guess_tag (SpElfSymbolResolver *self,
       else if (strstr (map->filename, "/libgio-2.0."))
         tag = g_quark_from_static_string ("Gio");
 
+      else if (strstr (map->filename, "/libgirepository-1.0."))
+        tag = g_quark_from_static_string ("Introspection");
+
       else if (strstr (map->filename, "/libgtk-3."))
         tag = g_quark_from_static_string ("Gtk+");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]