MCPcopy Create free account
hub / github.com/ioi/isolate / cg_setup

Function cg_setup

cg.c:284–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void
285cg_setup(void)
286{
287 if (!cg_enable)
288 return;
289
290 /*
291 * The box CG can be used by multiple invocations of "isolate --run",
292 * but cpu.stat is cummulative and cannot be reset. So we subtract
293 * the initial value of cpu.stat.
294 */
295 cg_time_offset = raw_get_run_time_ms();
296 if (verbose > 1)
297 msg("CG: Time offset = %d", cg_time_offset);
298}
299
300void
301cg_stats(void)

Callers 1

runFunction · 0.85

Calls 2

raw_get_run_time_msFunction · 0.85
msgFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…