diff options
author | Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com> | 2011-06-10 18:44:09 +0100 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2011-06-14 12:14:02 +0100 |
commit | 5dc42284a5174d6cb451d0f5956801e67da3e627 (patch) | |
tree | e8a55ba7be83b7b710e318a2d5a8e95e0f867b23 /cogl/cogl-debug.h | |
parent | c603dc67ca13d26e3909196500da693a92654dee (diff) | |
download | cogl-5dc42284a5174d6cb451d0f5956801e67da3e627.tar.gz |
cogl-debug: add instrumentation to track the number of objects
This allows to track the number of objects allocated by Cogl. The
results are displayed on the standard output by calling :
cogl_debug_print_instances ();
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>
Signed-off-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-debug.h')
-rw-r--r-- | cogl/cogl-debug.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cogl/cogl-debug.h b/cogl/cogl-debug.h index 294de846..292de259 100644 --- a/cogl/cogl-debug.h +++ b/cogl/cogl-debug.h @@ -75,6 +75,7 @@ typedef enum { #define COGL_DEBUG_N_INTS COGL_FLAGS_N_INTS_FOR_SIZE (COGL_DEBUG_N_FLAGS) extern unsigned int _cogl_debug_flags[COGL_DEBUG_N_INTS]; +extern GHashTable *_cogl_debug_instances; #define COGL_DEBUG_ENABLED(flag) \ COGL_FLAGS_GET (_cogl_debug_flags, flag) |