J’ai fait un petit script :
#!/bin/bash
psrecord --interval 1 --duration 300 --plot slack-tail.png $(pgrep slack | tail -n 1) &
P1=$!
psrecord --interval 1 --duration 300 --plot teams-tail.png $(pgrep teams | tail -n 1) &
P2=$!
psrecord --interval 1 --duration 300 --plot slack-head.png $(pgrep slack | head -n 1) &
P3=$!
psrecord --interval 1 --duration 300 --plot teams-head.png $(pgrep teams | head -n 1) &
P4=$!
wait $P1 $P2 $P3 $P4
echo 'Done'
Résultat rapide (car seulement sur 300 secondes ) :
Slack :
Microsoft Teams :
Je vais essayer de faire un script pour faire la somme des process … car j’ai plus de deux process par softs :
$ pgrep slack
2171
7960
7965
7969
8011
8020
$ pgrep teams
7681
7700
7777
7809
7916
8089

