author | stuefe |
Tue, 10 Sep 2019 09:24:05 +0200 | |
branch | stuefe-new-metaspace-branch |
changeset 58063 | bdf136b8ae0e |
parent 53244 | 9807daeb47c4 |
permissions | -rw-r--r-- |
49980 | 1 |
/* |
58063
bdf136b8ae0e
Initial changes for new metaspace. Only tested for Linux x64.
stuefe
parents:
53244
diff
changeset
|
2 |
* Copyright (c) 2018, 2019 SAP and/or its affiliates. |
bdf136b8ae0e
Initial changes for new metaspace. Only tested for Linux x64.
stuefe
parents:
53244
diff
changeset
|
3 |
* Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved. |
49980 | 4 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 |
* |
|
6 |
* This code is free software; you can redistribute it and/or modify it |
|
7 |
* under the terms of the GNU General Public License version 2 only, as |
|
8 |
* published by the Free Software Foundation. |
|
9 |
* |
|
10 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
11 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
14 |
* accompanied this code). |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License version |
|
17 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
18 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
19 |
* |
|
20 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
21 |
* or visit www.oracle.com if you need additional information or have any |
|
22 |
* questions. |
|
23 |
* |
|
24 |
*/ |
|
25 |
||
50193 | 26 |
#ifndef SHARE_MEMORY_METASPACE_METASPACEDCMD_HPP |
27 |
#define SHARE_MEMORY_METASPACE_METASPACEDCMD_HPP |
|
49980 | 28 |
|
29 |
#include "services/diagnosticCommand.hpp" |
|
30 |
||
31 |
class outputStream; |
|
32 |
||
33 |
namespace metaspace { |
|
34 |
||
35 |
class MetaspaceDCmd : public DCmdWithParser { |
|
36 |
DCmdArgument<bool> _basic; |
|
37 |
DCmdArgument<bool> _show_loaders; |
|
38 |
DCmdArgument<bool> _by_spacetype; |
|
39 |
DCmdArgument<bool> _by_chunktype; |
|
40 |
DCmdArgument<bool> _show_vslist; |
|
41 |
DCmdArgument<bool> _show_vsmap; |
|
42 |
DCmdArgument<char*> _scale; |
|
50309
37ebfe8bac7f
8203219: VM.metaspace jcmd should optionally show loaded classes for loaders
stuefe
parents:
50193
diff
changeset
|
43 |
DCmdArgument<bool> _show_classes; |
49980 | 44 |
public: |
45 |
MetaspaceDCmd(outputStream* output, bool heap); |
|
46 |
static const char* name() { |
|
47 |
return "VM.metaspace"; |
|
48 |
} |
|
49 |
static const char* description() { |
|
50 |
return "Prints the statistics for the metaspace"; |
|
51 |
} |
|
52 |
static const char* impact() { |
|
53 |
return "Medium: Depends on number of classes loaded."; |
|
54 |
} |
|
55 |
static const JavaPermission permission() { |
|
56 |
JavaPermission p = {"java.lang.management.ManagementPermission", |
|
57 |
"monitor", NULL}; |
|
58 |
return p; |
|
59 |
} |
|
60 |
static int num_arguments(); |
|
61 |
virtual void execute(DCmdSource source, TRAPS); |
|
62 |
}; |
|
63 |
||
64 |
} // namespace metaspace |
|
65 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
50309
diff
changeset
|
66 |
#endif // SHARE_MEMORY_METASPACE_METASPACEDCMD_HPP |