| 282 | } |
| 283 | |
| 284 | void |
| 285 | cg_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 | |
| 300 | void |
| 301 | cg_stats(void) |
no test coverage detected
searching dependent graphs…