MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxDeleteProfiler

Function fxDeleteProfiler

xs/sources/xsDebug.c:3306–3314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3304}
3305
3306void fxDeleteProfiler(txMachine* the, void* stream)
3307{
3308 txProfiler* profiler = the->profiler;
3309 fxSendProfilerTime(the, "stop", fxGetMicroSeconds());
3310 c_free(profiler->samples);
3311 c_free(profiler->records);
3312 c_free(profiler);
3313 the->profiler = C_NULL;
3314}
3315
3316#ifdef mxDebug
3317void fxEchoUnsigned(txMachine* the, txUnsigned value, txInteger radix)

Callers 1

fxStopProfilingFunction · 0.70

Calls 2

fxSendProfilerTimeFunction · 0.85
fxGetMicroSecondsFunction · 0.85

Tested by

no test coverage detected