MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / dumpToConsole

Method dumpToConsole

Engine/source/core/resourceManager.cpp:107–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106#ifdef TORQUE_DEBUG
107void ResourceManager::dumpToConsole()
108{
109 const U32 numResources = mResourceHeaderMap.size();
110
111 if ( numResources == 0 )
112 {
113 Con::printf( "ResourceManager is not managing any resources" );
114 return;
115 }
116
117 Con::printf( "ResourceManager is managing %d resources:", numResources );
118 Con::printf( " [ref count/signature/path]" );
119
120 ResourceHeaderMap::Iterator iter;
121
122 for( iter = mResourceHeaderMap.begin(); iter != mResourceHeaderMap.end(); ++iter )
123 {
124 ResourceBase::Header *header = (*iter).value;
125
126 char fourCC[ 5 ];
127 *( ( U32* ) fourCC ) = header->getSignature();
128 fourCC[ 4 ] = 0;
129
130 Con::printf( " %3d %s [%s] ", header->getRefCount(), fourCC, (*iter).key.c_str() );
131 }
132}
133#endif
134
135bool ResourceManager::remove( ResourceBase::Header* header )

Callers 1

Calls 7

printfFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
getSignatureMethod · 0.45
getRefCountMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected