Mercurial > hg > truffle
comparison src/share/vm/memory/metaspaceCounters.hpp @ 12248:73d0d0218068
8024718: Metaspace performance counters and memory pools should report the same data
Reviewed-by: stefank, dholmes, coleenp
author | ehelin |
---|---|
date | Tue, 17 Sep 2013 20:59:07 +0200 |
parents | 1a8fb39bdbc4 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
12247:fac394091d73 | 12248:73d0d0218068 |
---|---|
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 }; |