907 os::print_dll_info(output());
908 output()->cr();
909 }
910
911 void CompileQueueDCmd::execute(DCmdSource source, TRAPS) {
912 VM_PrintCompileQueue printCompileQueueOp(output());
913 VMThread::execute(&printCompileQueueOp);
914 }
915
916 void CodeListDCmd::execute(DCmdSource source, TRAPS) {
917 CodeCache::print_codelist(output());
918 }
919
920 void CodeCacheDCmd::execute(DCmdSource source, TRAPS) {
921 CodeCache::print_layout(output());
922 }
923
924 //---< BEGIN >--- CodeHeap State Analytics.
925 CodeHeapAnalyticsDCmd::CodeHeapAnalyticsDCmd(outputStream* output, bool heap) :
926 DCmdWithParser(output, heap),
927 _function("function", "Function to be performed (aggregate, UsedSpace, FreeSpace, MethodCount, MethodSpace, MethodAge, MethodNames, discard", "STRING", false, "all"),
928 _granularity("granularity", "Detail level - smaller value -> more detail", "STRING", false, "4096") {
929 _dcmdparser.add_dcmd_argument(&_function);
930 _dcmdparser.add_dcmd_argument(&_granularity);
931 }
932
933 void CodeHeapAnalyticsDCmd::execute(DCmdSource source, TRAPS) {
934 CompileBroker::print_heapinfo(output(), _function.value(), _granularity.value());
935 }
936
937 int CodeHeapAnalyticsDCmd::num_arguments() {
938 ResourceMark rm;
939 CodeHeapAnalyticsDCmd* dcmd = new CodeHeapAnalyticsDCmd(NULL, false);
940 if (dcmd != NULL) {
941 DCmdMark mark(dcmd);
942 return dcmd->_dcmdparser.num_arguments();
943 } else {
944 return 0;
945 }
946 }
947 //---< END >--- CodeHeap State Analytics.
|
907 os::print_dll_info(output());
908 output()->cr();
909 }
910
911 void CompileQueueDCmd::execute(DCmdSource source, TRAPS) {
912 VM_PrintCompileQueue printCompileQueueOp(output());
913 VMThread::execute(&printCompileQueueOp);
914 }
915
916 void CodeListDCmd::execute(DCmdSource source, TRAPS) {
917 CodeCache::print_codelist(output());
918 }
919
920 void CodeCacheDCmd::execute(DCmdSource source, TRAPS) {
921 CodeCache::print_layout(output());
922 }
923
924 //---< BEGIN >--- CodeHeap State Analytics.
925 CodeHeapAnalyticsDCmd::CodeHeapAnalyticsDCmd(outputStream* output, bool heap) :
926 DCmdWithParser(output, heap),
927 _function("function", "Function to be performed (aggregate, UsedSpace, FreeSpace, MethodCount, MethodSpace, MethodAge, discard", "STRING", false, "all"),
928 _granularity("granularity", "Detail level - smaller value -> more detail", "STRING", false, "4096") {
929 _dcmdparser.add_dcmd_argument(&_function);
930 _dcmdparser.add_dcmd_argument(&_granularity);
931 }
932
933 void CodeHeapAnalyticsDCmd::execute(DCmdSource source, TRAPS) {
934 CompileBroker::print_heapinfo(output(), _function.value(), _granularity.value());
935 }
936
937 int CodeHeapAnalyticsDCmd::num_arguments() {
938 ResourceMark rm;
939 CodeHeapAnalyticsDCmd* dcmd = new CodeHeapAnalyticsDCmd(NULL, false);
940 if (dcmd != NULL) {
941 DCmdMark mark(dcmd);
942 return dcmd->_dcmdparser.num_arguments();
943 } else {
944 return 0;
945 }
946 }
947 //---< END >--- CodeHeap State Analytics.
|