Release 1.4.0 🎩🎉🍡
New Features
show-busy-java-threads:- use
topcommand to get percent of thread cpu usage 🎩 🎉
you can use-P, --use-psoption so as to use ps command to find busy thead(cpu usage) instead of top command. - support
-S, --jstack-file-diroption to specify the dir for storing jstack output files, and keep files. 🛐
default store jstack output files at tmp dir, and auto remove after run.
use this option to keep files so as to review jstack output later. - support
-d, --top-delayoption to specifies the delay between top samples. 😋
get thread cpu percentage during this delay interval.
- use
xpf/xpl:- support mac, parse option by hand instead of
getopt#66 🍡
- support mac, parse option by hand instead of
Bug Fix
show-busy-java-threads:- should re-jstack when next update
- option parse fail should exit
Improvements
show-busy-java-threads:- improve show-busy-java-threads help format 📚
- improve output color 🌈
- improve docs
Code Cleanup
show-busy-java-threads:- main function style 💅
- reorder functions
- use
ARITHMETIC EVALUATIONexplicitly instead of-gtetc 🔢
Have Fun! 💕
2018-5-22