MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / GetActiveStats

Method GetActiveStats

Source/Utility/Profiler.cpp:303–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303CProfileCallstack * CProfilerImpl::GetActiveStats()
304{
305 u32 callstack_hash = ComputeCallstackHash( mActiveItems );
306 CallstackStatsMap::iterator it = mCallstackStatsMap.find( callstack_hash );
307
308 CProfileCallstack * callstack;
309 if( it == mCallstackStatsMap.end() )
310 {
311 CProfileCallstack * parent_callstack( mActiveCallstacks.empty() ? NULL : mActiveCallstacks.back() );
312
313 callstack = new CProfileCallstack( parent_callstack, mActiveItems );
314 mCallstackStatsMap[ callstack_hash ] = callstack;
315 }
316 else
317 {
318 callstack = it->second;
319 }
320
321 return callstack;
322}
323
324// Start profiling for an item
325void CProfilerImpl::Enter( SProfileItemHandle handle )

Callers

nothing calls this directly

Calls 2

ComputeCallstackHashFunction · 0.85
emptyMethod · 0.80

Tested by

no test coverage detected