hotspot/src/share/vm/services/diagnosticCommand.hpp
changeset 26587 e8b28fa936af
parent 25715 d5a8dbdc5150
child 26807 843ea33eb963
equal deleted inserted replaced
26585:2048b8d90c91 26587:e8b28fa936af
   397                         "control", NULL};
   397                         "control", NULL};
   398     return p;
   398     return p;
   399   }
   399   }
   400 };
   400 };
   401 
   401 
       
   402 class CompileQueueDCmd : public DCmd {
       
   403 public:
       
   404   CompileQueueDCmd(outputStream* output, bool heap) : DCmd(output, heap) {}
       
   405   static const char* name() {
       
   406     return "Compiler.queue";
       
   407   }
       
   408   static const char* description() {
       
   409     return "Print methods queued for compilation.";
       
   410   }
       
   411   static const char* impact() {
       
   412     return "Low";
       
   413   }
       
   414   static const JavaPermission permission() {
       
   415     JavaPermission p = {"java.lang.management.ManagementPermission",
       
   416                         "monitor", NULL};
       
   417     return p;
       
   418   }
       
   419   static int num_arguments() { return 0; }
       
   420   virtual void execute(DCmdSource source, TRAPS);
       
   421 };
       
   422 
       
   423 class CodeListDCmd : public DCmd {
       
   424 public:
       
   425   CodeListDCmd(outputStream* output, bool heap) : DCmd(output, heap) {}
       
   426   static const char* name() {
       
   427     return "Compiler.codelist";
       
   428   }
       
   429   static const char* description() {
       
   430     return "Print all compiled methods in code cache.";
       
   431   }
       
   432   static const char* impact() {
       
   433     return "Medium";
       
   434   }
       
   435   static const JavaPermission permission() {
       
   436     JavaPermission p = {"java.lang.management.ManagementPermission",
       
   437                         "monitor", NULL};
       
   438     return p;
       
   439   }
       
   440   static int num_arguments() { return 0; }
       
   441   virtual void execute(DCmdSource source, TRAPS);
       
   442 };
       
   443 
       
   444 
       
   445 class CodeCacheDCmd : public DCmd {
       
   446 public:
       
   447   CodeCacheDCmd(outputStream* output, bool heap) : DCmd(output, heap) {}
       
   448   static const char* name() {
       
   449     return "Compiler.codecache";
       
   450   }
       
   451   static const char* description() {
       
   452     return "Print code cache layout and bounds.";
       
   453   }
       
   454   static const char* impact() {
       
   455     return "Low";
       
   456   }
       
   457   static const JavaPermission permission() {
       
   458     JavaPermission p = {"java.lang.management.ManagementPermission",
       
   459                         "monitor", NULL};
       
   460     return p;
       
   461   }
       
   462   static int num_arguments() { return 0; }
       
   463   virtual void execute(DCmdSource source, TRAPS);
       
   464 };
       
   465 
   402 #endif // SHARE_VM_SERVICES_DIAGNOSTICCOMMAND_HPP
   466 #endif // SHARE_VM_SERVICES_DIAGNOSTICCOMMAND_HPP