< prev index next >

src/hotspot/share/services/diagnosticCommand.hpp

Print this page




 628   }
 629   static const char* description() {
 630     return "Print code cache layout and bounds.";
 631   }
 632   static const char* impact() {
 633     return "Low";
 634   }
 635   static const JavaPermission permission() {
 636     JavaPermission p = {"java.lang.management.ManagementPermission",
 637                         "monitor", NULL};
 638     return p;
 639   }
 640   static int num_arguments() { return 0; }
 641   virtual void execute(DCmdSource source, TRAPS);
 642 };
 643 
 644 //---<  BEGIN  >--- CodeHeap State Analytics.
 645 class CodeHeapAnalyticsDCmd : public DCmdWithParser {
 646 protected:
 647   DCmdArgument<char*> _function;
 648   DCmdArgument<jlong> _granularity;
 649 public:
 650   CodeHeapAnalyticsDCmd(outputStream* output, bool heap);
 651   static const char* name() {
 652     return "Compiler.CodeHeap_Analytics";
 653   }
 654   static const char* description() {
 655     return "Print CodeHeap analytics";
 656   }
 657   static const char* impact() {
 658     return "Low: Depends on code heap size and content. "
 659            "Holds CodeCache_lock during analysis step, usually sub-second duration.";
 660   }
 661   static const JavaPermission permission() {
 662     JavaPermission p = {"java.lang.management.ManagementPermission",
 663                         "monitor", NULL};
 664     return p;
 665   }
 666   static int num_arguments();
 667   virtual void execute(DCmdSource source, TRAPS);
 668 };


 870 class DebugOnCmdStartDCmd : public DCmdWithParser {
 871 public:
 872   DebugOnCmdStartDCmd(outputStream* output, bool heap);
 873   static const char* name() {
 874     return "VM.start_java_debugging";
 875   }
 876   static const char* description() {
 877     return "Starts up the Java debugging if the jdwp agentlib was enabled with the option onjcmd=y.";
 878   }
 879   static const char* impact() {
 880     return "High: Switches the VM into Java debug mode.";
 881   }
 882   static const JavaPermission permission() {
 883     JavaPermission p = { "java.lang.management.ManagementPermission", "monitor", NULL };
 884     return p;
 885   }
 886   static int num_arguments() { return 0; }
 887   virtual void execute(DCmdSource source, TRAPS);
 888 };
 889 #endif // INCLUDE_JVMTI
 890 
 891 class EventLogDCmd : public DCmdWithParser {
 892 protected:
 893   DCmdArgument<char*> _log;
 894   DCmdArgument<char*> _max;
 895 public:
 896   EventLogDCmd(outputStream* output, bool heap);
 897   static const char* name() {
 898     return "VM.events";
 899   }
 900   static const char* description() {
 901     return "Print VM event logs";
 902   }
 903   static const char* impact() {
 904     return "Low: Depends on event log size. ";
 905   }
 906   static const JavaPermission permission() {
 907     JavaPermission p = {"java.lang.management.ManagementPermission",
 908                         "monitor", NULL};
 909     return p;
 910   }
 911   static int num_arguments();
 912   virtual void execute(DCmdSource source, TRAPS);
 913 };
 914 
 915 #endif // SHARE_SERVICES_DIAGNOSTICCOMMAND_HPP


 628   }
 629   static const char* description() {
 630     return "Print code cache layout and bounds.";
 631   }
 632   static const char* impact() {
 633     return "Low";
 634   }
 635   static const JavaPermission permission() {
 636     JavaPermission p = {"java.lang.management.ManagementPermission",
 637                         "monitor", NULL};
 638     return p;
 639   }
 640   static int num_arguments() { return 0; }
 641   virtual void execute(DCmdSource source, TRAPS);
 642 };
 643 
 644 //---<  BEGIN  >--- CodeHeap State Analytics.
 645 class CodeHeapAnalyticsDCmd : public DCmdWithParser {
 646 protected:
 647   DCmdArgument<char*> _function;
 648   DCmdArgument<char*> _granularity;
 649 public:
 650   CodeHeapAnalyticsDCmd(outputStream* output, bool heap);
 651   static const char* name() {
 652     return "Compiler.CodeHeap_Analytics";
 653   }
 654   static const char* description() {
 655     return "Print CodeHeap analytics";
 656   }
 657   static const char* impact() {
 658     return "Low: Depends on code heap size and content. "
 659            "Holds CodeCache_lock during analysis step, usually sub-second duration.";
 660   }
 661   static const JavaPermission permission() {
 662     JavaPermission p = {"java.lang.management.ManagementPermission",
 663                         "monitor", NULL};
 664     return p;
 665   }
 666   static int num_arguments();
 667   virtual void execute(DCmdSource source, TRAPS);
 668 };


 870 class DebugOnCmdStartDCmd : public DCmdWithParser {
 871 public:
 872   DebugOnCmdStartDCmd(outputStream* output, bool heap);
 873   static const char* name() {
 874     return "VM.start_java_debugging";
 875   }
 876   static const char* description() {
 877     return "Starts up the Java debugging if the jdwp agentlib was enabled with the option onjcmd=y.";
 878   }
 879   static const char* impact() {
 880     return "High: Switches the VM into Java debug mode.";
 881   }
 882   static const JavaPermission permission() {
 883     JavaPermission p = { "java.lang.management.ManagementPermission", "monitor", NULL };
 884     return p;
 885   }
 886   static int num_arguments() { return 0; }
 887   virtual void execute(DCmdSource source, TRAPS);
 888 };
 889 #endif // INCLUDE_JVMTI
























 890 
 891 #endif // SHARE_SERVICES_DIAGNOSTICCOMMAND_HPP
< prev index next >