src/share/vm/services/diagnosticCommand.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/services

src/share/vm/services/diagnosticCommand.hpp

Print this page
rev 6793 : 8054889: Compiler team's implementation task
Summary: Adding three new diagnostic commands for compiler
Reviewed-by:


 382   virtual void execute(DCmdSource source, TRAPS);
 383 };
 384 
 385 class RotateGCLogDCmd : public DCmd {
 386 public:
 387   RotateGCLogDCmd(outputStream* output, bool heap) : DCmd(output, heap) {}
 388   static const char* name() { return "GC.rotate_log"; }
 389   static const char* description() {
 390     return "Force the GC log file to be rotated.";
 391   }
 392   static const char* impact() { return "Low"; }
 393   virtual void execute(DCmdSource source, TRAPS);
 394   static int num_arguments() { return 0; }
 395   static const JavaPermission permission() {
 396     JavaPermission p = {"java.lang.management.ManagementPermission",
 397                         "control", NULL};
 398     return p;
 399   }
 400 };
 401 
































































 402 #endif // SHARE_VM_SERVICES_DIAGNOSTICCOMMAND_HPP


 382   virtual void execute(DCmdSource source, TRAPS);
 383 };
 384 
 385 class RotateGCLogDCmd : public DCmd {
 386 public:
 387   RotateGCLogDCmd(outputStream* output, bool heap) : DCmd(output, heap) {}
 388   static const char* name() { return "GC.rotate_log"; }
 389   static const char* description() {
 390     return "Force the GC log file to be rotated.";
 391   }
 392   static const char* impact() { return "Low"; }
 393   virtual void execute(DCmdSource source, TRAPS);
 394   static int num_arguments() { return 0; }
 395   static const JavaPermission permission() {
 396     JavaPermission p = {"java.lang.management.ManagementPermission",
 397                         "control", NULL};
 398     return p;
 399   }
 400 };
 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 
 466 #endif // SHARE_VM_SERVICES_DIAGNOSTICCOMMAND_HPP
src/share/vm/services/diagnosticCommand.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File