Lines Matching defs:runtime
83 * process starts, we compute its %cpu usage by dividing its runtime by the
983 uint64_t pct_estimate, pct, runtime;
993 runtime = cputick2usec(p->p_rux.rux_runtime);
995 KASSERT(runtime >= p->p_prev_runtime, ("runtime < p_prev_runtime"));
997 if (runtime < p->p_prev_runtime)
998 runtime = p->p_prev_runtime;
1003 pct_estimate = (1000000 * runtime * 100) /
1011 racct_set_locked(p, RACCT_CPU, runtime, 0);
1244 uint64_t pct, pct_estimate, runtime;
1267 runtime = cputick2usec(p->p_rux.rux_runtime);
1270 KASSERT(runtime >= p->p_prev_runtime,
1271 ("runtime < p_prev_runtime"));
1273 if (runtime < p->p_prev_runtime)
1274 runtime = p->p_prev_runtime;
1276 p->p_prev_runtime = runtime;
1278 pct_estimate = (1000000 * runtime * 100) /
1292 racct_set_locked(p, RACCT_CPU, runtime, 0);