1 /* |
1 /* |
2 * Copyright (c) 2001, 2009, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
|
24 |
|
25 #ifndef SHARE_VM_RUNTIME_PERFDATA_HPP |
|
26 #define SHARE_VM_RUNTIME_PERFDATA_HPP |
|
27 |
|
28 #include "memory/allocation.inline.hpp" |
|
29 #include "runtime/perfMemory.hpp" |
|
30 #include "runtime/timer.hpp" |
|
31 #include "utilities/growableArray.hpp" |
24 |
32 |
25 /* jvmstat global and subsystem counter name space - enumeration value |
33 /* jvmstat global and subsystem counter name space - enumeration value |
26 * serve as an index into the PerfDataManager::_name_space[] array |
34 * serve as an index into the PerfDataManager::_name_space[] array |
27 * containing the corresponding name space string. Only the top level |
35 * containing the corresponding name space string. Only the top level |
28 * subsystem name spaces are represented here. |
36 * subsystem name spaces are represented here. |
955 inline PerfTraceTimedEvent(PerfLongCounter* timerp, PerfLongCounter* eventp, int* recursion_counter): PerfTraceTime(timerp, recursion_counter), _eventp(eventp) { |
963 inline PerfTraceTimedEvent(PerfLongCounter* timerp, PerfLongCounter* eventp, int* recursion_counter): PerfTraceTime(timerp, recursion_counter), _eventp(eventp) { |
956 if (!UsePerfData) return; |
964 if (!UsePerfData) return; |
957 _eventp->inc(); |
965 _eventp->inc(); |
958 } |
966 } |
959 }; |
967 }; |
|
968 |
|
969 #endif // SHARE_VM_RUNTIME_PERFDATA_HPP |