Mercurial > hg > graal-jvmci-8
comparison src/share/vm/services/nmtDCmd.hpp @ 10215:31a4e55f8c9d
8004095: Add support for JMX interface to Diagnostic Framework and Commands
Reviewed-by: acorn, sla
author | fparain |
---|---|
date | Fri, 03 May 2013 05:05:31 -0700 |
parents | 06db4c0afbf3 |
children | 833b0f92429a |
comparison
equal
deleted
inserted
replaced
10167:8fe2542bdc8d | 10215:31a4e55f8c9d |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * 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 | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
50 static const char* name() { return "VM.native_memory"; } | 50 static const char* name() { return "VM.native_memory"; } |
51 static const char* description() { | 51 static const char* description() { |
52 return "Print native memory usage"; | 52 return "Print native memory usage"; |
53 } | 53 } |
54 static const char* impact() { | 54 static const char* impact() { |
55 return "Medium:"; | 55 return "Medium"; |
56 } | |
57 static const JavaPermission permission() { | |
58 JavaPermission p = {"java.lang.management.ManagementPermission", | |
59 "monitor", NULL}; | |
60 return p; | |
56 } | 61 } |
57 static int num_arguments(); | 62 static int num_arguments(); |
58 virtual void execute(TRAPS); | 63 virtual void execute(DCmdSource source, TRAPS); |
59 }; | 64 }; |
60 | 65 |
61 #endif // SHARE_VM_SERVICES_NMT_DCMD_HPP | 66 #endif // SHARE_VM_SERVICES_NMT_DCMD_HPP |