< prev index next >

src/hotspot/share/services/diagnosticCommand.hpp

Print this page

885   DCmdArgument<char*> _max;
886 public:
887   EventLogDCmd(outputStream* output, bool heap);
888   static const char* name() {
889     return "VM.events";
890   }
891   static const char* description() {
892     return "Print VM event logs";
893   }
894   static const char* impact() {
895     return "Low: Depends on event log size. ";
896   }
897   static const JavaPermission permission() {
898     JavaPermission p = {"java.lang.management.ManagementPermission",
899                         "monitor", NULL};
900     return p;
901   }
902   virtual void execute(DCmdSource source, TRAPS);
903 };
904 


























905 #endif // SHARE_SERVICES_DIAGNOSTICCOMMAND_HPP

885   DCmdArgument<char*> _max;
886 public:
887   EventLogDCmd(outputStream* output, bool heap);
888   static const char* name() {
889     return "VM.events";
890   }
891   static const char* description() {
892     return "Print VM event logs";
893   }
894   static const char* impact() {
895     return "Low: Depends on event log size. ";
896   }
897   static const JavaPermission permission() {
898     JavaPermission p = {"java.lang.management.ManagementPermission",
899                         "monitor", NULL};
900     return p;
901   }
902   virtual void execute(DCmdSource source, TRAPS);
903 };
904 
905 class JavaThreadDumpDCmd : public DCmdWithParser {
906 private:
907   void dumpToFile(Symbol* name, Symbol* signature, const char* path, bool overwrite, TRAPS);
908 protected:
909   DCmdArgument<bool> _overwrite;
910   DCmdArgument<char*> _format;
911   DCmdArgument<char*> _filepath;
912 public:
913   JavaThreadDumpDCmd(outputStream *output, bool heap);
914   static const char *name() {
915     return "JavaThread.dump";
916   }
917   static const char *description() {
918     return "Java thread dump in plain text or JSON format.";
919   }
920   static const char* impact() {
921     return "Medium: Depends on the number of threads.";
922   }
923   static const JavaPermission permission() {
924     JavaPermission p = {"java.lang.management.ManagementPermission", "monitor", NULL};
925     return p;
926   }
927   static int num_arguments();
928   virtual void execute(DCmdSource source, TRAPS);
929 };
930 
931 #endif // SHARE_SERVICES_DIAGNOSTICCOMMAND_HPP
< prev index next >