MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / getStats

Method getStats

Engine/RenderStats.cpp:439–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439std::map<NodePtr, NodeRenderStats >
440RenderStats::getStats(double *totalTimeSpent) const
441{
442 QMutexLocker k(&_imp->lock);
443 std::map<NodePtr, NodeRenderStats > ret;
444
445 for (RenderStatsPrivate::NodeInfosMap::const_iterator it = _imp->nodeInfos.begin(); it != _imp->nodeInfos.end(); ++it) {
446 NodePtr node = it->first.lock();
447 if (node) {
448 ret.insert( std::make_pair(node, it->second) );
449 }
450 }
451
452 *totalTimeSpent = _imp->totalTimeSpentForFrameTimer.getTimeSinceCreation();
453
454 return ret;
455}
456
457NATRON_NAMESPACE_EXIT

Callers 3

notifyFrameRenderedMethod · 0.80
processProducedFrameMethod · 0.80
renderCurrentFrameMethod · 0.80

Calls 5

getTimeSinceCreationMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
lockMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected