comparison src/share/vm/memory/metaspaceCounters.hpp @ 12288:a7609ec351d6

Merge
author dcubed
date Fri, 20 Sep 2013 18:19:07 -0700
parents 73d0d0218068
children de6a9e811145
comparison
equal deleted inserted replaced
12286:df03413ad1a9 12288:a7609ec351d6
23 */ 23 */
24 24
25 #ifndef SHARE_VM_MEMORY_METASPACECOUNTERS_HPP 25 #ifndef SHARE_VM_MEMORY_METASPACECOUNTERS_HPP
26 #define SHARE_VM_MEMORY_METASPACECOUNTERS_HPP 26 #define SHARE_VM_MEMORY_METASPACECOUNTERS_HPP
27 27
28 #include "memory/metaspace.hpp" 28 #include "memory/allocation.hpp"
29 29
30 class MetaspacePerfCounters; 30 class MetaspacePerfCounters;
31 31
32 class MetaspaceCounters: public AllStatic { 32 class MetaspaceCounters: public AllStatic {
33 static MetaspacePerfCounters* _perf_counters; 33 static MetaspacePerfCounters* _perf_counters;
34 static size_t calculate_capacity(); 34 static size_t used();
35 static size_t capacity();
36 static size_t max_capacity();
35 37
36 public: 38 public:
37 static void initialize_performance_counters(); 39 static void initialize_performance_counters();
38 static void update_performance_counters(); 40 static void update_performance_counters();
39 }; 41 };
40 42
41 class CompressedClassSpaceCounters: public AllStatic { 43 class CompressedClassSpaceCounters: public AllStatic {
42 static MetaspacePerfCounters* _perf_counters; 44 static MetaspacePerfCounters* _perf_counters;
43 static size_t calculate_capacity(); 45 static size_t used();
44 static const Metaspace::MetadataType _class_type = Metaspace::ClassType; 46 static size_t capacity();
47 static size_t max_capacity();
45 48
46 public: 49 public:
47 static void initialize_performance_counters(); 50 static void initialize_performance_counters();
48 static void update_performance_counters(); 51 static void update_performance_counters();
49 }; 52 };