Commit ffd778f9 authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI

Take /proc in memory shot as well for linux

parent 811a8257
......@@ -140,6 +140,8 @@ function take_mem_shot() {
top -l 1 -pid `cat flexisip_pid` > memory.log
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
top -n 1 -p `cat flexisip_pid` > memory.log
echo "##### Proc #####" >> memory.log
cat /proc/`cat flexisip_pid`/status >> memory.log
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment