< prev index next >
src/share/vm/gc_implementation/shenandoah/shenandoahGCTraceTime.cpp
Print this page
*** 31,41 ****
#include "runtime/os.hpp"
#include "runtime/safepoint.hpp"
#include "runtime/thread.inline.hpp"
#include "runtime/timer.hpp"
#include "utilities/ostream.hpp"
! #include "utilities/ticks.inline.hpp"
ShenandoahGCTraceTime::ShenandoahGCTraceTime(const char* title, bool doit, GCTimer* timer, GCId gc_id, bool print_heap) :
_title(title), _doit(doit), _timer(timer), _start_counter(), _heap(ShenandoahHeap::heap()), _print_heap(print_heap) {
if (_doit || _timer != NULL) {
--- 31,41 ----
#include "runtime/os.hpp"
#include "runtime/safepoint.hpp"
#include "runtime/thread.inline.hpp"
#include "runtime/timer.hpp"
#include "utilities/ostream.hpp"
! #include "utilities/ticks.hpp"
ShenandoahGCTraceTime::ShenandoahGCTraceTime(const char* title, bool doit, GCTimer* timer, GCId gc_id, bool print_heap) :
_title(title), _doit(doit), _timer(timer), _start_counter(), _heap(ShenandoahHeap::heap()), _print_heap(print_heap) {
if (_doit || _timer != NULL) {
*** 70,80 ****
_timer->register_gc_phase_end(stop_counter);
}
if (_doit) {
const Tickspan duration = stop_counter - _start_counter;
! double secs = TicksToTimeHelper::seconds(duration);
size_t bytes_after = _heap->used();
size_t capacity = _heap->capacity();
if (_print_heap) {
--- 70,80 ----
_timer->register_gc_phase_end(stop_counter);
}
if (_doit) {
const Tickspan duration = stop_counter - _start_counter;
! double secs = duration.seconds();
size_t bytes_after = _heap->used();
size_t capacity = _heap->capacity();
if (_print_heap) {
< prev index next >