MCPcopy Create free account
hub / github.com/ImageEngine/cortex / memoryUsage

Method memoryUsage

src/IECore/CompoundObject.cpp:151–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void CompoundObject::memoryUsage( Object::MemoryAccumulator &a ) const
152{
153 Object::memoryUsage( a );
154 a.accumulate( m_members.size() * sizeof( ObjectMap::value_type ) );
155 for( ObjectMap::const_iterator it=m_members.begin(); it!=m_members.end(); it++ )
156 {
157 if ( it->second )
158 {
159 a.accumulate( it->second.get() );
160 }
161 }
162}
163
164static inline bool comp( CompoundObject::ObjectMap::const_iterator a, CompoundObject::ObjectMap::const_iterator b )
165{

Calls 5

accumulateMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected