add tbm_bufmgr_debug_get_ref_count() 04/169804/2
authorBoram Park <boram1288.park@samsung.com>
Fri, 9 Feb 2018 07:14:46 +0000 (16:14 +0900)
committerBoram Park <boram1288.park@samsung.com>
Fri, 9 Feb 2018 07:33:29 +0000 (16:33 +0900)
Change-Id: I7b1be4831cdf5a68417d69b6c97f7d13aff6d985

src/tbm_bufmgr.c
src/tbm_bufmgr.h

index f42c004..c48bc30 100644 (file)
@@ -1669,6 +1669,12 @@ tbm_bufmgr_debug_dump_set_scale(double scale)
 }
 
 int
+tbm_bufmgr_debug_get_ref_count(void)
+{
+       return (gBufMgr) ? gBufMgr->ref_count : 0;
+}
+
+int
 tbm_bufmgr_debug_queue_dump(char *path, int count, int onoff)
 {
        pthread_mutex_lock(&gLock);
index e386bea..a7d276a 100644 (file)
@@ -1081,6 +1081,12 @@ int tbm_bufmgr_debug_queue_dump(char *path, int count, int onoff);
  */
 void tbm_bufmgr_debug_dump_set_scale(double scale);
 
+/**
+ * @brief Get ref_count of a global tbm_bufmgr
+ * @since_tizen 5.0
+ */
+int tbm_bufmgr_debug_get_ref_count(void);
+
 int tbm_bufmgr_bind_native_display(tbm_bufmgr bufmgr, void *NativeDisplay);
 
 #ifdef __cplusplus