< prev index next >

src/hotspot/share/services/diagnosticCommand.hpp

Print this page

 940   DCmdArgument<char*> _filepath;
 941 public:
 942   static int num_arguments() { return 3; }
 943   ThreadDumpToFileDCmd(outputStream *output, bool heap);
 944   static const char *name() {
 945     return "Thread.dump_to_file";
 946   }
 947   static const char *description() {
 948     return "Dump threads, with stack traces, to a file in plain text or JSON format.";
 949   }
 950   static const char* impact() {
 951     return "Medium: Depends on the number of threads.";
 952   }
 953   static const JavaPermission permission() {
 954     JavaPermission p = {"java.lang.management.ManagementPermission", "monitor", nullptr};
 955     return p;
 956   }
 957   virtual void execute(DCmdSource source, TRAPS);
 958 };
 959 













 960 class CompilationMemoryStatisticDCmd: public DCmdWithParser {
 961 protected:
 962   DCmdArgument<bool> _human_readable;
 963   DCmdArgument<MemorySizeArgument> _minsize;
 964 public:
 965   static int num_arguments() { return 2; }
 966   CompilationMemoryStatisticDCmd(outputStream* output, bool heap);
 967   static const char* name() {
 968     return "Compiler.memory";
 969   }
 970   static const char* description() {
 971     return "Print compilation footprint";
 972   }
 973   static const char* impact() {
 974     return "Medium: Pause time depends on number of compiled methods";
 975   }
 976   static const JavaPermission permission() {
 977     JavaPermission p = {"java.lang.management.ManagementPermission",
 978                         "monitor", nullptr};
 979     return p;

 940   DCmdArgument<char*> _filepath;
 941 public:
 942   static int num_arguments() { return 3; }
 943   ThreadDumpToFileDCmd(outputStream *output, bool heap);
 944   static const char *name() {
 945     return "Thread.dump_to_file";
 946   }
 947   static const char *description() {
 948     return "Dump threads, with stack traces, to a file in plain text or JSON format.";
 949   }
 950   static const char* impact() {
 951     return "Medium: Depends on the number of threads.";
 952   }
 953   static const JavaPermission permission() {
 954     JavaPermission p = {"java.lang.management.ManagementPermission", "monitor", nullptr};
 955     return p;
 956   }
 957   virtual void execute(DCmdSource source, TRAPS);
 958 };
 959 
 960 class VThreadSchedulerDCmd : public DCmd {
 961 public:
 962   VThreadSchedulerDCmd(outputStream* output, bool heap) : DCmd(output, heap) { }
 963   static const char* name() {
 964     return "Thread.vthread_scheduler";
 965   }
 966   static const char* description() {
 967     return "Print virtual thread scheduler info.";
 968   }
 969   static const char* impact() { return "Low"; }
 970   virtual void execute(DCmdSource source, TRAPS);
 971 };
 972 
 973 class CompilationMemoryStatisticDCmd: public DCmdWithParser {
 974 protected:
 975   DCmdArgument<bool> _human_readable;
 976   DCmdArgument<MemorySizeArgument> _minsize;
 977 public:
 978   static int num_arguments() { return 2; }
 979   CompilationMemoryStatisticDCmd(outputStream* output, bool heap);
 980   static const char* name() {
 981     return "Compiler.memory";
 982   }
 983   static const char* description() {
 984     return "Print compilation footprint";
 985   }
 986   static const char* impact() {
 987     return "Medium: Pause time depends on number of compiled methods";
 988   }
 989   static const JavaPermission permission() {
 990     JavaPermission p = {"java.lang.management.ManagementPermission",
 991                         "monitor", nullptr};
 992     return p;
< prev index next >