Skip to content

Commit 6c364f0

Browse files
committed
improve help of show-busy-java-threads
1 parent b0a1d6e commit 6c364f0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/java.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ Example:
118118
show-busy-java-threads 3 10 # update every 3 seconds, update 10 times
119119

120120
Output control:
121-
-p, --pid <java pid> find out the highest cpu consumed threads from the specified java process,
122-
default from all java process.
121+
-p, --pid <java pid> find out the highest cpu consumed threads from
122+
the specified java process, default from all java process.
123123
-c, --count <num> set the thread count to show, default is 5.
124124
-a, --append-file <file> specifies the file to append output as log.
125125
-S, --store-dir <dir> specifies the directory for storing intermediate files, and keep files.
@@ -142,8 +142,8 @@ cpu usage calculation control:
142142
more info see top -d option. eg: -d 1 (1 second).
143143
-P, --use-ps use ps command to find busy thread(cpu usage) instead of top command,
144144
default use top command, because cpu usage of ps command is expressed as
145-
the percentage of time spent running during the entire lifetime of a process,
146-
this is not ideal.
145+
the percentage of time spent running during the *entire lifetime*
146+
of a process, this is not ideal in general.
147147

148148
Miscellaneous:
149149
-h, --help display this help and exit.

show-busy-java-threads

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ Example:
9797
${PROG} 3 10 # update every 3 seconds, update 10 times
9898
9999
Output control:
100-
-p, --pid <java pid> find out the highest cpu consumed threads from the specified java process,
101-
default from all java process.
100+
-p, --pid <java pid> find out the highest cpu consumed threads from
101+
the specified java process, default from all java process.
102102
-c, --count <num> set the thread count to show, default is 5.
103103
-a, --append-file <file> specifies the file to append output as log.
104104
-S, --store-dir <dir> specifies the directory for storing intermediate files, and keep files.
@@ -121,8 +121,8 @@ cpu usage calculation control:
121121
more info see top -d option. eg: -d 1 (1 second).
122122
-P, --use-ps use ps command to find busy thread(cpu usage) instead of top command,
123123
default use top command, because cpu usage of ps command is expressed as
124-
the percentage of time spent running during the entire lifetime of a process,
125-
this is not ideal.
124+
the percentage of time spent running during the *entire lifetime*
125+
of a process, this is not ideal in general.
126126
127127
Miscellaneous:
128128
-h, --help display this help and exit.

0 commit comments

Comments
 (0)