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 f42c004e56e432db4f079a7573bb605bbc17b01e..c48bc30516fcbf612ccc19a3a9388a6cce61a04d 100644 (file)
@@ -1668,6 +1668,12 @@ tbm_bufmgr_debug_dump_set_scale(double scale)
        pthread_mutex_unlock(&gLock);
 }
 
+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)
 {
index e386beabc14ffef28ee19e40829d38daccc0b163..a7d276a8ee24c85445992bf9508712f06fca0c02 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