changeset 9066:dc471edac21e

8231398: Add time tracing for gc log rotation at safepoint cleanup Reviewed-by: phh, andrew
author shade
date Thu, 31 Oct 2019 19:36:58 +0100
parents eee5798e1b28
children 4a7da2a46cb1
files src/share/vm/runtime/safepoint.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/safepoint.cpp	Mon Oct 28 13:29:09 2019 +0800
+++ b/src/share/vm/runtime/safepoint.cpp	Thu Oct 31 19:36:58 2019 +0100
@@ -537,6 +537,7 @@
 
   // rotate log files?
   if (UseGCLogFileRotation) {
+    TraceTime t8("rotating gc logs", TraceSafepointCleanupTime);
     gclog_or_tty->rotate_log(false);
   }