18 *
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
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/systemDictionary.hpp"
27 #include "memory/allocation.hpp"
28 #include "memory/heapInspection.hpp"
29 #include "memory/oopFactory.hpp"
30 #include "memory/resourceArea.hpp"
31 #include "oops/instanceKlass.hpp"
32 #include "oops/objArrayKlass.hpp"
33 #include "oops/objArrayOop.inline.hpp"
34 #include "oops/oop.inline.hpp"
35 #include "runtime/atomic.hpp"
36 #include "runtime/handles.inline.hpp"
37 #include "runtime/init.hpp"
38 #include "runtime/objectMonitor.inline.hpp"
39 #include "runtime/thread.inline.hpp"
40 #include "runtime/threadSMR.inline.hpp"
41 #include "runtime/vframe.hpp"
42 #include "runtime/vmThread.hpp"
43 #include "runtime/vmOperations.hpp"
44 #include "services/threadService.hpp"
45
46 // TODO: we need to define a naming convention for perf counters
47 // to distinguish counters for:
48 // - standard JSR174 use
49 // - Hotspot extension (public and committed)
50 // - Hotspot extension (private/internal and uncommitted)
51
52 // Default is disabled.
53 bool ThreadService::_thread_monitoring_contention_enabled = false;
54 bool ThreadService::_thread_cpu_time_enabled = false;
55 bool ThreadService::_thread_allocated_memory_enabled = false;
56
57 PerfCounter* ThreadService::_total_threads_count = NULL;
|
18 *
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
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/systemDictionary.hpp"
27 #include "memory/allocation.hpp"
28 #include "memory/heapInspection.hpp"
29 #include "memory/oopFactory.hpp"
30 #include "memory/resourceArea.hpp"
31 #include "oops/instanceKlass.hpp"
32 #include "oops/objArrayKlass.hpp"
33 #include "oops/objArrayOop.inline.hpp"
34 #include "oops/oop.inline.hpp"
35 #include "runtime/atomic.hpp"
36 #include "runtime/handles.inline.hpp"
37 #include "runtime/init.hpp"
38 #include "runtime/mutexLocker.inline.hpp"
39 #include "runtime/objectMonitor.inline.hpp"
40 #include "runtime/thread.inline.hpp"
41 #include "runtime/threadSMR.inline.hpp"
42 #include "runtime/vframe.hpp"
43 #include "runtime/vmThread.hpp"
44 #include "runtime/vmOperations.hpp"
45 #include "services/threadService.hpp"
46
47 // TODO: we need to define a naming convention for perf counters
48 // to distinguish counters for:
49 // - standard JSR174 use
50 // - Hotspot extension (public and committed)
51 // - Hotspot extension (private/internal and uncommitted)
52
53 // Default is disabled.
54 bool ThreadService::_thread_monitoring_contention_enabled = false;
55 bool ThreadService::_thread_cpu_time_enabled = false;
56 bool ThreadService::_thread_allocated_memory_enabled = false;
57
58 PerfCounter* ThreadService::_total_threads_count = NULL;
|