Kaynağa Gözat

remove O4 memusage calls

cxgeorge 24 yıl önce
ebeveyn
işleme
31529c37fa
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. 6 0
      panda/src/express/referenceCount.I

+ 6 - 0
panda/src/express/referenceCount.I

@@ -38,7 +38,9 @@ TypeHandle RefCountObj<Base>::_type_handle;
 INLINE ReferenceCount::
 ReferenceCount() {
   _ref_count = 0;
+#ifndef NDEBUG
   MemoryUsage::record_pointer(this);
+#endif
 }
 
 ////////////////////////////////////////////////////////////////////
@@ -54,7 +56,9 @@ ReferenceCount() {
 INLINE ReferenceCount::
 ReferenceCount(const ReferenceCount &) {
   _ref_count = 0;
+#ifndef NDEBUG
   MemoryUsage::record_pointer(this);
+#endif
 }
 
 ////////////////////////////////////////////////////////////////////
@@ -91,7 +95,9 @@ operator = (const ReferenceCount &) {
 INLINE ReferenceCount::
 ~ReferenceCount() {
   prepare_delete();
+#ifndef NDEBUG
   MemoryUsage::remove_pointer(this);
+#endif
 }
 
 ////////////////////////////////////////////////////////////////////