equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2018, 2019 SAP SE. All rights reserved. |
|
3 * Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
5 * |
5 * This code is free software; you can redistribute it and/or modify it |
6 * 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 |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
8 * published by the Free Software Foundation. |
26 #define SHARE_MEMORY_METASPACE_PRINTCLDMETASPACEINFOCLOSURE_HPP |
27 #define SHARE_MEMORY_METASPACE_PRINTCLDMETASPACEINFOCLOSURE_HPP |
27 |
28 |
28 #include "memory/iterator.hpp" |
29 #include "memory/iterator.hpp" |
29 #include "memory/metaspace.hpp" |
30 #include "memory/metaspace.hpp" |
30 #include "memory/metaspace/metaspaceStatistics.hpp" |
31 #include "memory/metaspace/metaspaceStatistics.hpp" |
|
32 #include "memory/metaspace/metaspaceEnums.hpp" |
31 #include "utilities/globalDefinitions.hpp" |
33 #include "utilities/globalDefinitions.hpp" |
32 |
34 |
33 class outputStream; |
35 class outputStream; |
34 |
36 |
35 namespace metaspace { |
37 namespace metaspace { |
45 public: |
47 public: |
46 |
48 |
47 uintx _num_loaders; |
49 uintx _num_loaders; |
48 uintx _num_loaders_without_metaspace; |
50 uintx _num_loaders_without_metaspace; |
49 uintx _num_loaders_unloading; |
51 uintx _num_loaders_unloading; |
50 ClassLoaderMetaspaceStatistics _stats_total; |
52 clms_stats_t _stats_total; |
51 |
53 |
52 uintx _num_loaders_by_spacetype [Metaspace::MetaspaceTypeCount]; |
54 uintx _num_loaders_by_spacetype [MetaspaceTypeCount]; |
53 ClassLoaderMetaspaceStatistics _stats_by_spacetype [Metaspace::MetaspaceTypeCount]; |
55 clms_stats_t _stats_by_spacetype [MetaspaceTypeCount]; |
54 |
56 |
55 uintx _num_classes_by_spacetype [Metaspace::MetaspaceTypeCount]; |
57 uintx _num_classes_by_spacetype [MetaspaceTypeCount]; |
56 uintx _num_classes_shared_by_spacetype [Metaspace::MetaspaceTypeCount]; |
58 uintx _num_classes_shared_by_spacetype [MetaspaceTypeCount]; |
57 uintx _num_classes; |
59 uintx _num_classes; |
58 uintx _num_classes_shared; |
60 uintx _num_classes_shared; |
59 |
61 |
60 PrintCLDMetaspaceInfoClosure(outputStream* out, size_t scale, bool do_print, |
62 PrintCLDMetaspaceInfoClosure(outputStream* out, size_t scale, bool do_print, |
61 bool do_print_classes, bool break_down_by_chunktype); |
63 bool do_print_classes, bool break_down_by_chunktype); |