|
ATLAS Offline Software
|
Go to the documentation of this file.
25 ISvcLocator* pSvcLocator ) :
27 m_vectorSize(1024*1024), m_2bReserved(m_vectorSize), m_mixture(1), m_mapIt(false)
47 return StatusCode::SUCCESS;
53 return StatusCode::SUCCESS;
70 cout <<
"initial capacity " << vcap << endl;
84 if (vold != vcap) cout <<
"iteration " <<
i <<
" new capacity " << vcap <<endl;
86 if (((
int)
p3-(
int)
p2) != ((
int)
p2-(
int)
p1)) cout <<
"iteration " <<
i <<
" new chunk @" << hex <<
p3 <<
" previous was @" <<
p2 << dec << endl;
87 #ifdef REALLY_DEBUG_ME
88 cout <<
"iteration " <<
i <<
" P3 @" << hex <<
p3 <<
" p2 @" <<
p2 <<
" p1 @" <<
p1 << dec <<
' ' << (
int)
p3-(
int)
p2 <<
' ' <<(
int)
p2-(
int)
p1 <<endl;
93 return StatusCode::SUCCESS;
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
virtual ~PolyVectorAlgWithArenas()
Destructor:
PolyVectorAlgWithArenas()
no implementation
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
IntegerProperty m_2bReserved
Property to setup the amount of elements to reserve.
::StatusCode StatusCode
StatusCode definition for legacy code.
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.
pointer nextElementPtr()
obtain the next available element in pool by pointer pool is resized if its limit has been reached On...
DataVector< IHit > HitPtrContainer
size_type capacity() const noexcept
Returns the total number of elements that the collection can hold before needing to allocate more mem...
value_type push_back(value_type pElem)
Add an element to the end of the collection.
IntegerProperty m_mixture
Property to set DHIT/FHIT ratio.
virtual StatusCode execute()
An STL vector of pointers that by default owns its pointed-to elements.
BooleanProperty m_mapIt
Property to introduce some fragmentation.
std::map< int, IHit * > m_mixMap
a typed memory pool that saves time spent allocation small object. This is typically used by containe...
virtual StatusCode finalize()
IntegerProperty m_vectorSize
Property to setup the size of the Hit container.
virtual StatusCode initialize()