性能测试必备命令(4)- pstree

时间:2022-07-23
本文章向大家介绍性能测试必备命令(4)- pstree,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

性能测试必备的 Linux 命令系列,可以看下面链接的文章哦

https://www.cnblogs.com/poloyy/category/1819490.html

介绍

显示进程树

语法格式

pstree [-a, --arguments] [-c, --compact] [-h, --highlight-all, -Hpid, --high‐
       light-pid pid] [-g] --show-pgids] [-l, --long] [-n, --numeric-sort] [-N, --ns-sortns
       [-p, --show-pids] [-s, --show-parents] [-S, --ns-changes] [-t, --thread-names]
       [-T, --hide-threads] [-u, --uid-changes] [-Z, --security-context]
       [-A, --ascii, -G, --vt100, -U, --unicode] [pid, user]
pstree -V, --version

命令行参数

栗子

pstree -acpgts

演变的过程