changeset 4239:eb911d21c6b1

Merge
author nloodin
date Wed, 20 Feb 2013 03:58:10 -0800
parents c8304f3d0a6c bc34e24e0637
children 32ff8194b6d4
files
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/perfData.cpp	Wed Feb 13 10:25:09 2013 +0100
+++ b/src/share/vm/runtime/perfData.cpp	Wed Feb 20 03:58:10 2013 -0800
@@ -320,6 +320,10 @@
   }
 }
 
+PerfData* PerfDataManager::find_by_name(const char* name) {
+  return _all->find_by_name(name);
+}
+
 PerfDataList* PerfDataManager::all() {
 
   MutexLocker ml(PerfDataManager_lock);
--- a/src/share/vm/runtime/perfData.hpp	Wed Feb 13 10:25:09 2013 +0100
+++ b/src/share/vm/runtime/perfData.hpp	Wed Feb 20 03:58:10 2013 -0800
@@ -692,6 +692,9 @@
     // the given name.
     static bool exists(const char* name) { return _all->contains(name); }
 
+    // method to search for a instrumentation object by name
+    static PerfData* find_by_name(const char* name);
+
     // method to map a CounterNS enumeration to a namespace string
     static const char* ns_to_string(CounterNS ns) {
       return _name_spaces[ns];