aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/services/management.cpp
diff options
context:
space:
mode:
authorfparain <none@none>2012-01-09 10:27:24 +0100
committerfparain <none@none>2012-01-09 10:27:24 +0100
commit2cfbacb665b618137e75982e671854b8def122f7 (patch)
treec93e5dcf8f40cfaa86c704c31859fabd97310cb7 /src/share/vm/services/management.cpp
parent492917f68714dfd4f3079315579d5986db99c72a (diff)
7120511: Add diagnostic commands
Reviewed-by: acorn, phh, dcubed, sspitsyn
Diffstat (limited to 'src/share/vm/services/management.cpp')
-rw-r--r--src/share/vm/services/management.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/share/vm/services/management.cpp b/src/share/vm/services/management.cpp
index 217836c4f..680c5d389 100644
--- a/src/share/vm/services/management.cpp
+++ b/src/share/vm/services/management.cpp
@@ -118,8 +118,22 @@ void Management::init() {
#endif // SERVICES_KERNEL
_optional_support.isThreadAllocatedMemorySupported = 1;
+ // Registration of the diagnostic commands
+ // First boolean argument specifies if the command is enabled
+ // Second boolean argument specifies if the command is hidden
DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HelpDCmd>(true, false));
DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<VersionDCmd>(true, false));
+ DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<CommandLineDCmd>(true, false));
+ DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<PrintSystemPropertiesDCmd>(true, false));
+ DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<PrintVMFlagsDCmd>(true, false));
+ DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<VMUptimeDCmd>(true, false));
+ DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<SystemGCDCmd>(true, false));
+ DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<RunFinalizationDCmd>(true, false));
+#ifndef SERVICES_KERNEL // Heap dumping not supported
+ DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HeapDumpDCmd>(true, false));
+#endif // SERVICES_KERNEL
+ DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassHistogramDCmd>(true, false));
+ DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ThreadDumpDCmd>(true, false));
}
void Management::initialize(TRAPS) {