devtools/stresstester.py
changeset 3647 2941f4a0aab9
parent 2476 1294a6bdf3bf
child 4252 6c4f109c2b03
equal deleted inserted replaced
3646:3bba270202ef 3647:2941f4a0aab9
   154     from cubicweb.cwconfig import instance_configuration
   154     from cubicweb.cwconfig import instance_configuration
   155     config = instance_configuration(args[0])
   155     config = instance_configuration(args[0])
   156     # get local access to the repository
   156     # get local access to the repository
   157     print "Creating repo", prof_file
   157     print "Creating repo", prof_file
   158     repo = Repository(config, prof_file)
   158     repo = Repository(config, prof_file)
   159     cnxid = repo.connect(user, password)
   159     cnxid = repo.connect(user, password=password)
   160     # connection to the CubicWeb repository
   160     # connection to the CubicWeb repository
   161     repo_cnx = Connection(repo, cnxid)
   161     repo_cnx = Connection(repo, cnxid)
   162     repo_cursor = repo_cnx.cursor()
   162     repo_cursor = repo_cnx.cursor()
   163     reporter = ProfileReporter(queries)
   163     reporter = ProfileReporter(queries)
   164     if threads > 1:
   164     if threads > 1: