src/share/vm/memory/metaspaceCounters.hpp

Print this page
rev 5230 : 8024718: Metaspace performance counters and memory pools should report the same data

*** 23,49 **** */ #ifndef SHARE_VM_MEMORY_METASPACECOUNTERS_HPP #define SHARE_VM_MEMORY_METASPACECOUNTERS_HPP ! #include "memory/metaspace.hpp" class MetaspacePerfCounters; class MetaspaceCounters: public AllStatic { static MetaspacePerfCounters* _perf_counters; ! static size_t calculate_capacity(); public: static void initialize_performance_counters(); static void update_performance_counters(); }; class CompressedClassSpaceCounters: public AllStatic { static MetaspacePerfCounters* _perf_counters; ! static size_t calculate_capacity(); ! static const Metaspace::MetadataType _class_type = Metaspace::ClassType; public: static void initialize_performance_counters(); static void update_performance_counters(); }; --- 23,52 ---- */ #ifndef SHARE_VM_MEMORY_METASPACECOUNTERS_HPP #define SHARE_VM_MEMORY_METASPACECOUNTERS_HPP ! #include "memory/allocation.hpp" class MetaspacePerfCounters; class MetaspaceCounters: public AllStatic { static MetaspacePerfCounters* _perf_counters; ! static size_t used(); ! static size_t capacity(); ! static size_t max_capacity(); public: static void initialize_performance_counters(); static void update_performance_counters(); }; class CompressedClassSpaceCounters: public AllStatic { static MetaspacePerfCounters* _perf_counters; ! static size_t used(); ! static size_t capacity(); ! static size_t max_capacity(); public: static void initialize_performance_counters(); static void update_performance_counters(); };