ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
Athena_test::Leakcheck Struct Reference

#include <leakcheck.h>

Collaboration diagram for Athena_test::Leakcheck:

Public Member Functions

 Leakcheck ()
 
 ~Leakcheck ()
 

Public Attributes

std::unordered_set< void * > * m_old_allocs
 
std::unordered_set< void * > m_allocs
 

Detailed Description

Definition at line 103 of file leakcheck.h.

Constructor & Destructor Documentation

◆ Leakcheck()

Athena_test::Leakcheck::Leakcheck ( )
inline

Definition at line 105 of file leakcheck.h.

◆ ~Leakcheck()

Athena_test::Leakcheck::~Leakcheck ( )

Definition at line 113 of file leakcheck.h.

114 {
116  if (!m_allocs.empty()) {
117  std::cerr << "Leaks!\n";
118  for (void* p : m_allocs)
119  std::cerr << " " << p << "\n";
120  assert (m_allocs.empty());
121  }
122 }

Member Data Documentation

◆ m_allocs

std::unordered_set<void*> Athena_test::Leakcheck::m_allocs

Definition at line 108 of file leakcheck.h.

◆ m_old_allocs

std::unordered_set<void*>* Athena_test::Leakcheck::m_old_allocs

Definition at line 107 of file leakcheck.h.


The documentation for this struct was generated from the following file:
Athena_test::Leakcheck::m_old_allocs
std::unordered_set< void * > * m_old_allocs
Definition: leakcheck.h:107
Athena_test::Leakcheck::m_allocs
std::unordered_set< void * > m_allocs
Definition: leakcheck.h:108
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
Athena_test::allocs
std::unordered_set< void * > * allocs
Definition: leakcheck.h:51