321 sum += d;
322 out->print_cr(" %5.0f of %5.0f ms (%5.1f%%): %s",
323 d * 1000, total * 1000, d/total*100, t->name());
324 }
325 threads_total++;
326 ShenandoahThreadLocalData::reset_paced_time(t);
327 }
328 out->print_cr(" %5.0f of %5.0f ms (%5.1f%%): <total>",
329 sum * 1000, total * 1000, sum/total*100);
330
331 if (threads_total > 0) {
332 out->print_cr(" %5.0f of %5.0f ms (%5.1f%%): <average total>",
333 sum / threads_total * 1000, total * 1000, sum / threads_total / total * 100);
334 }
335 if (threads_nz > 0) {
336 out->print_cr(" %5.0f of %5.0f ms (%5.1f%%): <average non-zero>",
337 sum / threads_nz * 1000, total * 1000, sum / threads_nz / total * 100);
338 }
339 out->cr();
340 }
|
321 sum += d;
322 out->print_cr(" %5.0f of %5.0f ms (%5.1f%%): %s",
323 d * 1000, total * 1000, d/total*100, t->name());
324 }
325 threads_total++;
326 ShenandoahThreadLocalData::reset_paced_time(t);
327 }
328 out->print_cr(" %5.0f of %5.0f ms (%5.1f%%): <total>",
329 sum * 1000, total * 1000, sum/total*100);
330
331 if (threads_total > 0) {
332 out->print_cr(" %5.0f of %5.0f ms (%5.1f%%): <average total>",
333 sum / threads_total * 1000, total * 1000, sum / threads_total / total * 100);
334 }
335 if (threads_nz > 0) {
336 out->print_cr(" %5.0f of %5.0f ms (%5.1f%%): <average non-zero>",
337 sum / threads_nz * 1000, total * 1000, sum / threads_nz / total * 100);
338 }
339 out->cr();
340 }
341
342 void ShenandoahPeriodicPacerNotifyTask::task() {
343 assert(ShenandoahPacing, "Should not be here otherwise");
344 _pacer->notify_waiters();
345 }
|