Browse Source

remove O4 memusage calls

cxgeorge 24 years ago
parent
commit
31529c37fa
1 changed files with 6 additions and 0 deletions
  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
 }
 
 ////////////////////////////////////////////////////////////////////