equal
deleted
inserted
replaced
549 _dcmdparser.add_dcmd_option(&_help); |
549 _dcmdparser.add_dcmd_option(&_help); |
550 _dcmdparser.add_dcmd_argument(&_columns); |
550 _dcmdparser.add_dcmd_argument(&_columns); |
551 } |
551 } |
552 |
552 |
553 void ClassStatsDCmd::execute(DCmdSource source, TRAPS) { |
553 void ClassStatsDCmd::execute(DCmdSource source, TRAPS) { |
554 if (!UnlockDiagnosticVMOptions) { |
|
555 output()->print_cr("GC.class_stats command requires -XX:+UnlockDiagnosticVMOptions"); |
|
556 return; |
|
557 } |
|
558 |
|
559 VM_GC_HeapInspection heapop(output(), |
554 VM_GC_HeapInspection heapop(output(), |
560 true /* request_full_gc */); |
555 true /* request_full_gc */); |
561 heapop.set_csv_format(_csv.value()); |
556 heapop.set_csv_format(_csv.value()); |
562 heapop.set_print_help(_help.value()); |
557 heapop.set_print_help(_help.value()); |
563 heapop.set_print_class_stats(true); |
558 heapop.set_print_class_stats(true); |
994 TouchedMethodsDCmd::TouchedMethodsDCmd(outputStream* output, bool heap) : |
989 TouchedMethodsDCmd::TouchedMethodsDCmd(outputStream* output, bool heap) : |
995 DCmdWithParser(output, heap) |
990 DCmdWithParser(output, heap) |
996 {} |
991 {} |
997 |
992 |
998 void TouchedMethodsDCmd::execute(DCmdSource source, TRAPS) { |
993 void TouchedMethodsDCmd::execute(DCmdSource source, TRAPS) { |
999 if (!UnlockDiagnosticVMOptions) { |
994 if (!LogTouchedMethods) { |
1000 output()->print_cr("VM.touched_methods command requires -XX:+UnlockDiagnosticVMOptions"); |
995 output()->print_cr("VM.print_touched_methods command requires -XX:+LogTouchedMethods"); |
1001 return; |
996 return; |
1002 } |
997 } |
1003 VM_DumpTouchedMethods dumper(output()); |
998 VM_DumpTouchedMethods dumper(output()); |
1004 VMThread::execute(&dumper); |
999 VMThread::execute(&dumper); |
1005 } |
1000 } |