MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / traverseZoneTree

Function traverseZoneTree

TheForceEngine/TFE_System/profiler.cpp:207–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 void traverseZoneTree(u32 id)
208 {
209 if (id == NULL_ZONE) { return; }
210 Zone* zone = &s_zoneList[id];
211 // Make sure zones are only inserted once for now.
212 if (zone->frame != s_currentFrame)
213 {
214 s_sortedZoneList.push_back(id);
215 }
216 zone->frame = s_currentFrame;
217
218 while (zone->child != NULL_ZONE)
219 {
220 traverseZoneTree(zone->child);
221 zone = &s_zoneList[zone->child];
222 }
223
224 zone = &s_zoneList[id];
225 while (zone->sibling != NULL_ZONE)
226 {
227 traverseZoneTree(zone->sibling);
228 zone = &s_zoneList[zone->sibling];
229 }
230 }
231
232 void frameEnd()
233 {

Callers 1

frameEndFunction · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected