Source: Common/include/Luau/TimeTrace.h:82-93 (hand-ported) C++ ThreadContext::flushEvents().
Common/include/Luau/TimeTrace.h:82-93
ThreadContext::flushEvents()