Browse Source

instrument allocate/deallocate

David Rose 19 years ago
parent
commit
87e992a9fc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dtool/src/dtoolbase/deletedChain.T

+ 2 - 0
dtool/src/dtoolbase/deletedChain.T

@@ -32,6 +32,7 @@ MutexImpl DeletedChain<Type>::_lock;
 template<class Type>
 template<class Type>
 INLINE Type *DeletedChain<Type>::
 INLINE Type *DeletedChain<Type>::
 allocate(size_t size) {
 allocate(size_t size) {
+  TAU_PROFILE("Type *DeletedChain<Type>::allocate(size_t)", " ", TAU_USER);
   assert(size <= sizeof(Type));
   assert(size <= sizeof(Type));
 
 
 #ifndef HAVE_ATOMIC_COMPARE_AND_EXCHANGE_PTR
 #ifndef HAVE_ATOMIC_COMPARE_AND_EXCHANGE_PTR
@@ -76,6 +77,7 @@ allocate(size_t size) {
 template<class Type>
 template<class Type>
 INLINE void DeletedChain<Type>::
 INLINE void DeletedChain<Type>::
 deallocate(Type *ptr) {
 deallocate(Type *ptr) {
+  TAU_PROFILE("void DeletedChain<Type>::deallocate(Type *)", " ", TAU_USER);
 #ifndef HAVE_ATOMIC_COMPARE_AND_EXCHANGE_PTR
 #ifndef HAVE_ATOMIC_COMPARE_AND_EXCHANGE_PTR
   _lock.lock();
   _lock.lock();