MCPcopy Create free account
hub / github.com/defold/defold / TraverseSampleTree

Function TraverseSampleTree

engine/profiler/src/profiler.cpp:888–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888static void TraverseSampleTree(dmProfileRender::ProfilerThread* thread, int indent, dmProfiler::HSample sample)
889{
890 ProcessSample(thread, indent, sample);
891
892 dmProfiler::SampleIterator iter;
893 dmProfiler::SampleIterateChildren(sample, &iter);
894 while (dmProfiler::SampleIterateNext(&iter))
895 {
896 TraverseSampleTree(thread, indent + 1, iter.m_Sample);
897 }
898}
899
900static void SampleTreeCallback(void* _ctx, const char* thread_name, dmProfiler::HSample root)
901{

Callers 1

SampleTreeCallbackFunction · 0.85

Calls 3

ProcessSampleFunction · 0.85
SampleIterateChildrenFunction · 0.85
SampleIterateNextFunction · 0.85

Tested by

no test coverage detected