Changeset 861

Show
Ignore:
Timestamp:
07/27/07 05:30:27 (1 year ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r860 r861  
     12007-07-26  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * qa/run-tests.py: Added new option for showing how much memory is 
     4        the server using during the QA test execution. 
     5 
    162007-07-25  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
    27 
  • cherokee/trunk/qa/run-tests.py

    r860 r861  
    4040log      = False 
    4141help     = False 
     42memproc  = False 
    4243 
    4344server   = CHEROKEE_PATH 
     
    7980    elif p     == '-l': log      = True 
    8081    elif p     == '-h': help     = True 
     82    elif p     == '-o': memproc  = True 
    8183    elif p[:2] == '-n': num      = int(p[2:]) 
    8284    elif p[:2] == '-t': thds     = int(p[2:]) 
     
    238240        print 
    239241 
     242        if memproc: 
     243            cmd = 'xterm -e "             \ 
     244            ( while :; do                 \ 
     245               [ -d /proc/%d ] || break;  \ 
     246               date;                      \ 
     247               cat /proc/%d/status 2>/dev/null | egrep \'(VmSize|VmData|SleepAVG)\'; \ 
     248               echo;                      \ 
     249               sleep 1;                   \ 
     250            done; ) | less -b1024 -O/tmp/cherokee_mem.txt" &' % (pid, pid) 
     251            os.system(cmd) 
     252 
    240253        # Count down 
    241254        count_down ("Tests will start in %d secs", delay)