Skip to content

Instantly share code, notes, and snippets.

View olamy's full-sized avatar
🏃‍♂️
running

Olivier Lamy olamy

🏃‍♂️
running
View GitHub Profile
@olamy
olamy / threadwatch.sh
Created August 17, 2020 12:29 — forked from gregw/threadwatch.sh
Script to match /proc/PID data with jstack
#!/bin/bash
PID=$1
CPUFILE=/tmp/cpu-$PID-0
LASTFILE=/tmp/cpu-$PID-1
>$LASTFILE
function cleanup { rm $CPUFILE $LASTFILE ; }
trap cleanup EXIT