// DebugAllocator::dump_state void DebugAllocator::dump_state( StateWriter & i_state_writer ) { i_state_writer.write( "type", "debug" ); i_state_writer.write_mem_size( "heading_nomansland_size", m_heading_nomansland_size ); i_state_writer.write_mem_size( "tailing_nomansland_size", m_tailing_nomansland_size ); DecoratorAllocator::dump_state( i_state_writer ); }
// DecoratorAllocator::dump_state void DecoratorAllocator::dump_state( StateWriter & i_state_writer ) { if( m_dest_allocator != nullptr ) { i_state_writer.tab( "allocator" ); m_dest_allocator->dump_state( i_state_writer ); i_state_writer.untab(); } else { i_state_writer.write( "target", "null" ); } }