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

Function fxSendProfilerTime

xs/sources/xsDebug.c:3464–3482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3462}
3463
3464void fxSendProfilerTime(txMachine* the, txString name, txMicroseconds when)
3465{
3466#ifdef mxDebug
3467 if (fxIsConnected(the)) {
3468 int shift;
3469 fxEchoStart(the);
3470 fxEcho(the, "<pt name=\"");
3471 fxEchoString(the, name);
3472 fxEcho(the, "\" value=\"@");
3473 shift = (8 * sizeof(when)) - 4;
3474 while (shift >= 0) {
3475 fxEchoCharacter(the, c_read8(gxHexaDigits + ((when >> shift) & 0x0F)));
3476 shift -= 4;
3477 }
3478 fxEcho(the, "\"/>");
3479 fxEchoStop(the);
3480 }
3481#endif
3482}
3483
3484void fxSuspendProfiler(txMachine* the)
3485{

Callers 4

fxCreateProfilerFunction · 0.85
fxDeleteProfilerFunction · 0.85
fxResumeProfilerFunction · 0.85
fxSuspendProfilerFunction · 0.85

Calls 6

fxEchoStartFunction · 0.85
fxEchoFunction · 0.85
fxEchoStringFunction · 0.85
fxEchoCharacterFunction · 0.85
fxEchoStopFunction · 0.85
fxIsConnectedFunction · 0.70

Tested by

no test coverage detected