src/hotspot/share/gc/shared/gcTraceTime.inline.hpp
author coleenp
Tue, 31 Oct 2017 11:55:09 -0400
changeset 47765 b7c7428eaab9
parent 47216 71c04702a3d5
child 51332 c25572739e7c
permissions -rw-r--r--
8189610: Reconcile jvm.h and all jvm_md.h between java.base and hotspot Summary: Removed hotspot version of jvm*h and jni*h files. Reviewed-by: ihse, mchung, dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
     1
/*
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
     2
 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
     4
 *
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
     7
 * published by the Free Software Foundation.
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
     8
 *
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    13
 * accompanied this code).
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    14
 *
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    18
 *
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    21
 * questions.
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    22
 *
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    23
 */
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    24
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    25
#ifndef SHARE_VM_GC_SHARED_GCTRACETIME_INLINE_HPP
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    26
#define SHARE_VM_GC_SHARED_GCTRACETIME_INLINE_HPP
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    27
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    28
#include "gc/shared/collectedHeap.hpp"
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    29
#include "gc/shared/gcTimer.hpp"
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    30
#include "gc/shared/gcTrace.hpp"
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    31
#include "gc/shared/gcTraceTime.hpp"
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    32
#include "logging/log.hpp"
46701
f559541c0daa 8181917: Refactor UL LogStreams to avoid using resource area
stuefe
parents: 41723
diff changeset
    33
#include "logging/logStream.hpp"
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    34
#include "memory/universe.hpp"
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    35
#include "utilities/ticks.hpp"
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    36
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    37
#define LOG_STOP_HEAP_FORMAT SIZE_FORMAT "M->" SIZE_FORMAT "M("  SIZE_FORMAT "M)"
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    38
37255
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    39
inline void GCTraceTimeImpl::log_start(jlong start_counter) {
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    40
  if (_out_start.is_enabled()) {
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    41
    LogStream out(_out_start);
37200
e601cf49b2d8 8151438: UL instantiates duplicate tag sets
mlarsson
parents: 37161
diff changeset
    42
37255
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    43
    out.print("%s", _title);
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    44
    if (_gc_cause != GCCause::_no_gc) {
37255
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    45
      out.print(" (%s)", GCCause::to_string(_gc_cause));
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    46
    }
41723
88393c6dd24e 8167190: Remove confusing timestamps from the gc log
ehelin
parents: 37255
diff changeset
    47
    out.cr();
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    48
  }
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    49
}
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    50
37255
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    51
inline void GCTraceTimeImpl::log_stop(jlong start_counter, jlong stop_counter) {
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    52
  double duration_in_ms = TimeHelper::counter_to_millis(stop_counter - start_counter);
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    53
  double start_time_in_secs = TimeHelper::counter_to_seconds(start_counter);
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    54
  double stop_time_in_secs = TimeHelper::counter_to_seconds(stop_counter);
37255
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    55
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    56
  LogStream out(_out_stop);
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    57
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    58
  out.print("%s", _title);
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    59
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    60
  if (_gc_cause != GCCause::_no_gc) {
37255
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    61
    out.print(" (%s)", GCCause::to_string(_gc_cause));
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    62
  }
37255
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    63
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    64
  if (_heap_usage_before != SIZE_MAX) {
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    65
    CollectedHeap* heap = Universe::heap();
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    66
    size_t used_before_m = _heap_usage_before / M;
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    67
    size_t used_m = heap->used() / M;
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    68
    size_t capacity_m = heap->capacity() / M;
37255
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    69
    out.print(" " LOG_STOP_HEAP_FORMAT, used_before_m, used_m, capacity_m);
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    70
  }
37255
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    71
41723
88393c6dd24e 8167190: Remove confusing timestamps from the gc log
ehelin
parents: 37255
diff changeset
    72
  out.print_cr(" %.3fms", duration_in_ms);
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    73
}
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    74
37255
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    75
inline void GCTraceTimeImpl::time_stamp(Ticks& ticks) {
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    76
  if (_enabled || _timer != NULL) {
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    77
    ticks.stamp();
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    78
  }
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    79
}
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    80
37255
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    81
inline GCTraceTimeImpl::GCTraceTimeImpl(LogTargetHandle out_start, LogTargetHandle out_stop, const char* title, GCTimer* timer, GCCause::Cause gc_cause, bool log_heap_usage) :
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    82
  _enabled(out_stop.is_enabled()),
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    83
  _out_start(out_start),
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
    84
  _out_stop(out_stop),
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    85
  _start_ticks(),
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    86
  _heap_usage_before(SIZE_MAX),
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    87
  _title(title),
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    88
  _gc_cause(gc_cause),
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    89
  _timer(timer) {
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    90
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    91
  time_stamp(_start_ticks);
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    92
  if (_enabled) {
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    93
    if (log_heap_usage) {
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    94
      _heap_usage_before = Universe::heap()->used();
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    95
    }
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    96
    log_start(_start_ticks.value());
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    97
  }
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    98
  if (_timer != NULL) {
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
    99
    _timer->register_gc_phase_start(_title, _start_ticks);
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   100
  }
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   101
}
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   102
37255
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   103
inline GCTraceTimeImpl::~GCTraceTimeImpl() {
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   104
  Ticks stop_ticks;
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   105
  time_stamp(stop_ticks);
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   106
  if (_enabled) {
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   107
    log_stop(_start_ticks.value(), stop_ticks.value());
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   108
  }
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   109
  if (_timer != NULL) {
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   110
    _timer->register_gc_phase_end(stop_ticks);
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   111
  }
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   112
}
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   113
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   114
template <LogLevelType Level, LogTagType T0, LogTagType T1, LogTagType T2, LogTagType T3, LogTagType T4, LogTagType GuardTag >
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   115
GCTraceConcTimeImpl<Level, T0, T1, T2, T3, T4, GuardTag>::GCTraceConcTimeImpl(const char* title) :
37242
91e5f98fff6f 8152632: Rename LogHandle(...) to Log(...)
stefank
parents: 37200
diff changeset
   116
  _enabled(LogImpl<T0, T1, T2, T3, T4, GuardTag>::is_level(Level)), _start_time(os::elapsed_counter()), _title(title) {
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   117
  if (_enabled) {
41723
88393c6dd24e 8167190: Remove confusing timestamps from the gc log
ehelin
parents: 37255
diff changeset
   118
    LogImpl<T0, T1, T2, T3, T4>::template write<Level>("%s", _title);
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   119
  }
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   120
}
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   121
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   122
template <LogLevelType Level, LogTagType T0, LogTagType T1, LogTagType T2, LogTagType T3, LogTagType T4, LogTagType GuardTag >
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   123
GCTraceConcTimeImpl<Level, T0, T1, T2, T3, T4, GuardTag>::~GCTraceConcTimeImpl() {
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   124
  if (_enabled) {
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   125
    jlong stop_time = os::elapsed_counter();
41723
88393c6dd24e 8167190: Remove confusing timestamps from the gc log
ehelin
parents: 37255
diff changeset
   126
    LogImpl<T0, T1, T2, T3, T4>::template write<Level>("%s %0.3fms", _title,
88393c6dd24e 8167190: Remove confusing timestamps from the gc log
ehelin
parents: 37255
diff changeset
   127
                                                       TimeHelper::counter_to_millis(stop_time - _start_time));
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   128
  }
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   129
}
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   130
37255
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   131
// Figure out the first __NO_TAG position and replace it with 'start'.
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   132
#define INJECT_START_TAG(T1, T2, T3, T4) \
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   133
    ((                          T1 == LogTag::__NO_TAG) ? PREFIX_LOG_TAG(start) : T1), \
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   134
    ((T1 != LogTag::__NO_TAG && T2 == LogTag::__NO_TAG) ? PREFIX_LOG_TAG(start) : T2), \
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   135
    ((T2 != LogTag::__NO_TAG && T3 == LogTag::__NO_TAG) ? PREFIX_LOG_TAG(start) : T3), \
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   136
    ((T3 != LogTag::__NO_TAG && T4 == LogTag::__NO_TAG) ? PREFIX_LOG_TAG(start) : T4)
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   137
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   138
template <LogLevelType level, LogTagType T0, LogTagType T1, LogTagType T2, LogTagType T3, LogTagType T4, LogTagType GuardTag>
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   139
GCTraceTimeImplWrapper<level, T0, T1, T2, T3, T4, GuardTag>::GCTraceTimeImplWrapper(
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   140
    const char* title, GCTimer* timer, GCCause::Cause gc_cause, bool log_heap_usage)
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   141
    : _impl(
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   142
        LogTargetHandle::create<level, T0, INJECT_START_TAG(T1, T2, T3, T4), GuardTag>(),
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   143
        LogTargetHandle::create<level, T0, T1, T2, T3, T4, GuardTag>(),
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   144
        title,
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   145
        timer,
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   146
        gc_cause,
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   147
        log_heap_usage) {
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   148
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   149
  STATIC_ASSERT(T0 != LogTag::__NO_TAG); // Need some tag to log on.
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   150
  STATIC_ASSERT(T4 == LogTag::__NO_TAG); // Need to leave at least the last tag for the "start" tag in log_start()
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   151
}
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   152
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   153
#undef INJECT_START_TAG
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   154
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   155
template <LogLevelType Level, LogTagType T0, LogTagType T1, LogTagType T2, LogTagType T3, LogTagType T4, LogTagType GuardTag>
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   156
GCTraceTimeImplWrapper<Level, T0, T1, T2, T3, T4, GuardTag>::~GCTraceTimeImplWrapper() {}
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   157
100d4a515df0 8152711: Create a non-template Log wrapper class
stefank
parents: 37242
diff changeset
   158
#define GCTraceTime(Level, ...) GCTraceTimeImplWrapper<LogLevel::Level, LOG_TAGS(__VA_ARGS__)>
35061
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   159
#define GCTraceConcTime(Level, ...) GCTraceConcTimeImpl<LogLevel::Level, LOG_TAGS(__VA_ARGS__)>
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   160
be6025ebffea 8145092: Use Unified Logging for the GC logging
brutisso
parents:
diff changeset
   161
#endif // SHARE_VM_GC_SHARED_GCTRACETIME_INLINE_HPP