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

Function modInstrumentationCPU1

xs/platforms/esp/xsHost.c:830–838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828
829#if kTargetCPUCount > 1
830static int32_t modInstrumentationCPU1(void *theIn)
831{
832 int32_t result, total = (gCPUCounts[2] + gCPUCounts[3]);
833 if (!total)
834 return 0;
835 result = (100 * gCPUCounts[2]) / total;
836 gCPUCounts[2] = gCPUCounts[3] = 0;
837 return result;
838}
839#endif
840#endif
841

Callers 1

xsHost.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected