18 #include "boost/assign/list_of.hpp"
20 #include "google/heap-profiler.h"
21 #include "google/heap-checker.h"
22 #include "google/profiler.h"
94 return ( dynamic_cast<GaudiSequencer*>(i) != NULL ||
95 dynamic_cast<Sequencer*>(i) != NULL );
158 std::ostringstream t;
163 void before(CustomEventTypeRef,
const std::string&
s)
173 std::ostringstream t;
180 <<
"Auditor already running. Cannot be started for " << s
190 std::ostringstream t;
206 std::ostringstream t;
219 std::ostringstream t;
287 , m_log ( msgSvc() , name )
290 , m_sampleEventCount( 0 )
291 , m_inFullAudit ( false )
295 const std::vector<std::string> tmp =
296 boost::assign::list_of
307 "List of phases to activate the Auditoring during" );
309 "List of component names to disable the auditing for" );
312 "The frequence to audit events. -1 means all events" );
314 "If true, instead of individually auditing components, the full event (or events) will be audited in one go" );
316 "The number of events to include in a full event audit, if enabled" );
318 "Number of events to skip before activating the auditing" );
320 "If true, auditing will be skipped for Sequencer objects." );
353 HeapProfilerStart(s.c_str());
360 HeapProfilerDump(s.c_str());
364 const char * profile = GetHeapProfile();
414 const char * HEAPCHECK = getenv(
"HEAPCHECK");
418 <<
"Environment variable HEAPCHECK must be set to 'local'"
422 if ( std::string(HEAPCHECK) !=
"local" )
425 <<
"Environment variable HEAPCHECK is set to " << HEAPCHECK
426 <<
" Partial Program Heap Checking is disabled"
440 m_checker =
new HeapLeakChecker(s.c_str());
496 ProfilerStart((s+
".prof").c_str());