From 7efadb953285051fb7d65312a800284e54a296bd Mon Sep 17 00:00:00 2001 From: Marvin Blauth Date: Thu, 11 Aug 2022 16:52:33 +0200 Subject: [PATCH] #6: Document usage of -M command line option --- README.md | 3 ++- src/main/java/jdump/cli/CommandLineArguments.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 025c3f9..96a8d09 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Currently supported are ## Usage ``` -java -jar jdump.jar [-f] [-A] [-H] [-J] [-d] [-N] [-T] +java -jar jdump.jar [-f] [-A] [-H] [-J] [-d] [-M] [-N] [-T] Options: start without options to show UI, if not on a headless system @@ -25,6 +25,7 @@ start without options to show UI, if not on a headless system -A: produce all types of dumps for all JVMs running locally -H: produce heap dumps for all JVMs running locally -J: produce JFRs for all JVMs running locally +-M: produce mallinfo() stats on Linux with glibc -d: the duration selected for the JFRs, in seconds, default: 5 -N: product Native Memory Tracks for all JVMs running locally -T: produce thread dumps for all JVMs running locally diff --git a/src/main/java/jdump/cli/CommandLineArguments.java b/src/main/java/jdump/cli/CommandLineArguments.java index 307cc70..d7326ee 100644 --- a/src/main/java/jdump/cli/CommandLineArguments.java +++ b/src/main/java/jdump/cli/CommandLineArguments.java @@ -58,7 +58,7 @@ private static Optional getLastOf(List argList, String parameter } private void showUsageInformation() { - System.out.println("Usage: jdump [-f] [-A] [-H] [-J] [-d] [-N] [-M] [-T]"); + System.out.println("Usage: jdump [-f] [-A] [-H] [-J] [-d] [-M] [-N] [-T]"); System.out.println(); System.out.println("Options:"); System.out.println("start without options to show UI, if not on a headless system");