mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 20:44:41 +02:00
8145303: Clean up the units for log_gc_footer
Reviewed-by: david, tschatzl, goetz
This commit is contained in:
parent
9fc9cf684a
commit
9ecd60a8dc
6 changed files with 11 additions and 12 deletions
|
@ -3600,13 +3600,13 @@ void G1CollectedHeap::reset_taskqueue_stats() {
|
|||
}
|
||||
#endif // TASKQUEUE_STATS
|
||||
|
||||
void G1CollectedHeap::log_gc_footer(double pause_time_counter) {
|
||||
void G1CollectedHeap::log_gc_footer(jlong pause_time_counter) {
|
||||
if (evacuation_failed()) {
|
||||
log_info(gc)("To-space exhausted");
|
||||
}
|
||||
|
||||
double pause_time_sec = TimeHelper::counter_to_seconds(pause_time_counter);
|
||||
g1_policy()->print_phases(pause_time_sec);
|
||||
double pause_time_ms = TimeHelper::counter_to_millis(pause_time_counter);
|
||||
g1_policy()->print_phases(pause_time_ms);
|
||||
|
||||
g1_policy()->print_detailed_heap_transition();
|
||||
}
|
||||
|
@ -3698,8 +3698,7 @@ G1CollectedHeap::do_collection_pause_at_safepoint(double target_pause_time_ms) {
|
|||
}
|
||||
GCTraceTime(Info, gc) tm(gc_string, NULL, gc_cause(), true);
|
||||
|
||||
double pause_start_sec = os::elapsedTime();
|
||||
double pause_start_counter = os::elapsed_counter();
|
||||
jlong pause_start_counter = os::elapsed_counter();
|
||||
g1_policy()->note_gc_start(active_workers);
|
||||
|
||||
TraceCollectorStats tcs(g1mm()->incremental_collection_counters());
|
||||
|
|
|
@ -290,7 +290,7 @@ private:
|
|||
void verify_before_gc();
|
||||
void verify_after_gc();
|
||||
|
||||
void log_gc_footer(double pause_time_counter);
|
||||
void log_gc_footer(jlong pause_time_counter);
|
||||
|
||||
void trace_heap(GCWhen::Type when, const GCTracer* tracer);
|
||||
|
||||
|
|
|
@ -1299,8 +1299,8 @@ void G1CollectorPolicy::print_detailed_heap_transition() const {
|
|||
MetaspaceAux::print_metaspace_change(_metaspace_used_bytes_before_gc);
|
||||
}
|
||||
|
||||
void G1CollectorPolicy::print_phases(double pause_time_sec) {
|
||||
phase_times()->print(pause_time_sec);
|
||||
void G1CollectorPolicy::print_phases(double pause_time_ms) {
|
||||
phase_times()->print(pause_time_ms);
|
||||
}
|
||||
|
||||
void G1CollectorPolicy::adjust_concurrent_refinement(double update_rs_time,
|
||||
|
|
|
@ -661,7 +661,7 @@ public:
|
|||
|
||||
void print_detailed_heap_transition() const;
|
||||
|
||||
virtual void print_phases(double pause_time_sec);
|
||||
virtual void print_phases(double pause_time_ms);
|
||||
|
||||
void record_stop_world_start();
|
||||
void record_concurrent_pause();
|
||||
|
|
|
@ -349,7 +349,7 @@ class G1GCParPhasePrinter : public StackObj {
|
|||
}
|
||||
};
|
||||
|
||||
void G1GCPhaseTimes::print(double pause_time_sec) {
|
||||
void G1GCPhaseTimes::print(double pause_time_ms) {
|
||||
note_gc_end();
|
||||
|
||||
G1GCParPhasePrinter par_phase_printer(this);
|
||||
|
@ -373,7 +373,7 @@ void G1GCPhaseTimes::print(double pause_time_sec) {
|
|||
}
|
||||
print_stats(Indents[1], "Clear CT", _cur_clear_ct_time_ms);
|
||||
print_stats(Indents[1], "Expand Heap After Collection", _cur_expand_heap_time_ms);
|
||||
double misc_time_ms = pause_time_sec * MILLIUNITS - accounted_time_ms();
|
||||
double misc_time_ms = pause_time_ms - accounted_time_ms();
|
||||
print_stats(Indents[1], "Other", misc_time_ms);
|
||||
if (_cur_verify_before_time_ms > 0.0) {
|
||||
print_stats(Indents[2], "Verify Before", _cur_verify_before_time_ms);
|
||||
|
|
|
@ -126,7 +126,7 @@ class G1GCPhaseTimes : public CHeapObj<mtGC> {
|
|||
public:
|
||||
G1GCPhaseTimes(uint max_gc_threads);
|
||||
void note_gc_start(uint active_gc_threads);
|
||||
void print(double pause_time_sec);
|
||||
void print(double pause_time_ms);
|
||||
|
||||
// record the time a phase took in seconds
|
||||
void record_time_secs(GCParPhases phase, uint worker_i, double secs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue