MCPcopy Index your code
hub / github.com/codenameone/CodenameOne / vmTrace

Function vmTrace

vm/ByteCodeTranslator/src/javascript/parparvm_runtime.js:343–360  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

341let vmTraceWaitCount = 0;
342let vmTraceWaitSuppressed = false;
343function vmTrace(line) {
344 if (typeof line === "string" && line.indexOf("runtime.") === 0) {
345 return;
346 }
347 if (typeof line === "string" && line.indexOf("runtime.handleYield.thread-") === 0 && line.indexOf(":wait") > 0) {
348 vmTraceWaitCount++;
349 if (vmTraceWaitCount > VM_TRACE_WAIT_LIMIT) {
350 if (!vmTraceWaitSuppressed && global.console && typeof global.console.log === "function") {
351 vmTraceWaitSuppressed = true;
352 global.console.log("PARPAR:runtime.handleYield:wait:throttled");
353 }
354 return;
355 }
356 }
357 if (global.console && typeof global.console.log === "function") {
358 global.console.log("PARPAR:" + line);
359 }
360}
361function shouldEnableDiag() {
362 if (global.__parparDiagEnabled != null) {
363 return !!global.__parparDiagEnabled;

Callers 10

vmDiagFunction · 0.85
ensureClassInitializedFunction · 0.85
spawnFunction · 0.85
drainFunction · 0.85
_refreshTimedWakeupTimerFunction · 0.85
handleYieldFunction · 0.85
startFunction · 0.85

Calls 2

indexOfMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected