Package cubicweb :: Package devtools :: Module stresstester
[hide private]
[frames] | no frames]

Module stresstester

source code

Usage: %s [OPTIONS] <instance id> <queries file>

Stress test a CubicWeb repository

OPTIONS:
  -h / --help
     Display this help message and exit.

  -u / --user <user>
     Connect as <user> instead of being prompted to give it.
  -p / --password <password>
     Automatically give <password> for authentication instead of being prompted
     to give it.

  -n / --nb-times <num>
     Repeat queries <num> times.
  -t / --nb-threads <num>
     Execute queries in <num> parallel threads.
  -P / --profile <prof_file>
     dumps profile results (hotshot) in <prof_file>
  -o / --report-output <filename>
     Write profiler report into <filename> rather than on stdout

Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
http://www.logilab.fr/ -- mailto:contact@logilab.fr

Classes [hide private]
  QueryExecutor
  ProfileReporter
a profile reporter gathers all profile informations from several threads and can write a report that summarizes all profile informations
Functions [hide private]
 
usage(status=0)
print usage string and exit
source code
 
run(args)
run the command line tool
source code
Variables [hide private]
  TB_LOCK = threading.Lock()