Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
Minor fixes to memory script
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanrn committed May 18, 2019
1 parent cce9898 commit 2a1ee88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions newRunMemTest
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ function runTest(){
FFMACHPID=$!
sleep 6
FFPID=$(pgrep -P $FFMACHPID)
FFCHILDPIDS=($(pstree -T -p $FFPID | grep -o '([0-9]\+)' | grep -o '[0-9]\+'))
FFWEBCONTENTID=$(pgrep -P $FFPID "Web Content")
FFCHILDPIDS=($(pstree -T -p $FFWEBCONTENTID | grep -o '([0-9]\+)' | grep -o '[0-9]\+'))
FFTOTALMEM=0
for (( l = 0; l < ${#FFCHILDPIDS[@]}; l++ )); do
CHILDMEM=$(ps -p ${FFCHILDPIDS[$l]} -o rss=)
Expand All @@ -83,7 +84,7 @@ for (( j = 0; j < ${#FFVersions[@]}; j++ )); do
cd ${FFVersionsDir[$j]}
cp "mozconfig${Pl}_${FFVersions[$j]}" mozconfig
pkill -f ProcessSandbox_otherside
for (( k = 1; k < 20; k++ )); do
for (( k = 1; k < 22; k++ )); do
runTest "${OUTPUTPATH}/${FFVersions[$j]}${FFVersionsSuffix[$j]}" "${FFPinCores[$j]}" $k
done
cd $SAVEDDIR
Expand Down

0 comments on commit 2a1ee88

Please sign in to comment.