< prev index next >

src/hotspot/share/runtime/perfData.inline.hpp

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 2002, 2024, 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.

@@ -25,10 +25,11 @@
  #ifndef SHARE_RUNTIME_PERFDATA_INLINE_HPP
  #define SHARE_RUNTIME_PERFDATA_INLINE_HPP
  
  #include "runtime/perfData.hpp"
  
+ #include "services/management.hpp"
  #include "utilities/globalDefinitions.hpp"
  #include "utilities/growableArray.hpp"
  
  inline int PerfDataList::length() {
    return _set->length();

@@ -48,6 +49,14 @@
    } else {
      return false;
    }
  }
  
+ inline long PerfTickCounters::elapsed_counter_value_ms() const {
+   return Management::ticks_to_ms(_elapsed_counter->get_value());
+ }
+ 
+ inline long PerfTickCounters::thread_counter_value_ms() const {
+   return Management::ticks_to_ms(_thread_counter->get_value());
+ }
+ 
  #endif // SHARE_RUNTIME_PERFDATA_INLINE_HPP
< prev index next >