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

Function PruneProfilerThreads

engine/profiler/src/profiler_render.cpp:963–978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961 }
962
963 void PruneProfilerThreads(ProfilerFrame* frame, uint64_t time)
964 {
965 for (uint32_t i = 0; i < frame->m_Threads.Size(); )
966 {
967 ProfilerThread* thread = frame->m_Threads[i];
968 if (thread->m_Time < time)
969 {
970 DeleteProfilerThread(thread);
971 frame->m_Threads.EraseSwap(i);
972 }
973 else
974 {
975 ++i;
976 }
977 }
978 }
979
980 void AddProperty(ProfilerFrame* frame, uint32_t name_hash, ProfilePropertyType type, ProfilePropertyValue value, int indent)
981 {

Callers 1

SampleTreeCallbackFunction · 0.85

Calls 2

DeleteProfilerThreadFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected