< prev index next >
src/share/vm/gc_implementation/shared/gcTraceTime.cpp
Print this page
rev 8910 : full patch for jfr
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -70,11 +70,12 @@
_timer->register_gc_phase_end(stop_counter);
}
if (_doit) {
const Tickspan duration = stop_counter - _start_counter;
- double duration_in_seconds = TicksToTimeHelper::seconds(duration);
+ double duration_in_seconds = TimeHelper::counter_to_seconds(duration.value());
+
if (_print_cr) {
gclog_or_tty->print_cr(", %3.7f secs]", duration_in_seconds);
} else {
gclog_or_tty->print(", %3.7f secs]", duration_in_seconds);
}
< prev index next >