hotspot/src/share/vm/services/nmtDCmd.hpp
changeset 17296 68557efd8583
parent 16436 6b67e51e3cfb
child 25946 1572c9f03fb9
equal deleted inserted replaced
17093:04fc6db0518b 17296:68557efd8583
     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