mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8249649: Shenandoah: provide per-cycle pacing stats
Reviewed-by: rkennke
This commit is contained in:
parent
b7c307c019
commit
5d270677f7
9 changed files with 89 additions and 49 deletions
|
@ -252,6 +252,9 @@ void ShenandoahControlThread::run_service() {
|
|||
|
||||
// Commit worker statistics to cycle data
|
||||
heap->phase_timings()->flush_par_workers_to_cycle();
|
||||
if (ShenandoahPacing) {
|
||||
heap->pacer()->flush_stats_to_cycle();
|
||||
}
|
||||
|
||||
// Print GC stats for current cycle
|
||||
{
|
||||
|
@ -260,6 +263,9 @@ void ShenandoahControlThread::run_service() {
|
|||
ResourceMark rm;
|
||||
LogStream ls(lt);
|
||||
heap->phase_timings()->print_cycle_on(&ls);
|
||||
if (ShenandoahPacing) {
|
||||
heap->pacer()->print_cycle_on(&ls);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue