Last active
November 4, 2020 07:22
-
-
Save ashishb888/b6bae7ffa9eae1c78181d58b6b9e91a6 to your computer and use it in GitHub Desktop.
Monitor a process activity. It can display all the threads associated with a process, IO activity per thread, thread context switching etc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pid=$1 | |
appName=$2 | |
timestamp=`date +%FT%H-%M-%S` | |
pidstat -w -d -t -p $pid -h 5 > /var/tmp/$appName-$timestamp.out | |
#bash pidstat.sh 22292 app-name & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment