< prev index next >
src/share/vm/gc/g1/g1GCPhaseTimes.hpp
Print this page
rev 13330 : imported patch webrev.2
rev 13332 : [mq]: webrev.4
*** 23,37 ****
--- 23,39 ----
*/
#ifndef SHARE_VM_GC_G1_G1GCPHASETIMES_HPP
#define SHARE_VM_GC_G1_G1GCPHASETIMES_HPP
+ #include "gc/shared/referenceProcessorPhaseTimes.hpp"
#include "logging/logLevel.hpp"
#include "memory/allocation.hpp"
#include "utilities/macros.hpp"
class LineBuffer;
+ class STWGCTimer;
template <class T> class WorkerDataArray;
class G1GCPhaseTimes : public CHeapObj<mtGC> {
uint _max_gc_threads;
*** 149,158 ****
--- 151,162 ----
size_t _cur_fast_reclaim_humongous_reclaimed;
double _cur_verify_before_time_ms;
double _cur_verify_after_time_ms;
+ ReferenceProcessorPhaseTimes _ref_phase_times;
+
double worker_time(GCParPhases phase, uint worker);
void note_gc_end();
void reset();
template <class T>
*** 162,181 ****
void debug_phase(WorkerDataArray<double>* phase) const;
void trace_phase(WorkerDataArray<double>* phase, bool print_sum = true) const;
void info_time(const char* name, double value) const;
void debug_time(const char* name, double value) const;
void trace_time(const char* name, double value) const;
void trace_count(const char* name, size_t value) const;
double print_pre_evacuate_collection_set() const;
double print_evacuate_collection_set() const;
double print_post_evacuate_collection_set() const;
void print_other(double accounted_ms) const;
public:
! G1GCPhaseTimes(uint max_gc_threads);
void note_gc_start();
void print();
// record the time a phase took in seconds
void record_time_secs(GCParPhases phase, uint worker_i, double secs);
--- 166,187 ----
void debug_phase(WorkerDataArray<double>* phase) const;
void trace_phase(WorkerDataArray<double>* phase, bool print_sum = true) const;
void info_time(const char* name, double value) const;
void debug_time(const char* name, double value) const;
+ // This will print logs for both 'gc+phases' and 'gc+phases+ref'.
+ void debug_time_for_reference(const char* name, double value) const;
void trace_time(const char* name, double value) const;
void trace_count(const char* name, size_t value) const;
double print_pre_evacuate_collection_set() const;
double print_evacuate_collection_set() const;
double print_post_evacuate_collection_set() const;
void print_other(double accounted_ms) const;
public:
! G1GCPhaseTimes(STWGCTimer* gc_timer, uint max_gc_threads);
void note_gc_start();
void print();
// record the time a phase took in seconds
void record_time_secs(GCParPhases phase, uint worker_i, double secs);
*** 344,353 ****
--- 350,361 ----
}
double fast_reclaim_humongous_time_ms() {
return _cur_fast_reclaim_humongous_time_ms;
}
+
+ ReferenceProcessorPhaseTimes* ref_phase_times() { return &_ref_phase_times; }
};
class G1GCParPhaseTimesTracker : public StackObj {
double _start_time;
G1GCPhaseTimes::GCParPhases _phase;
< prev index next >