comparison roundup/rest.py @ 7683:b04e222501b8

fix: rest - set self.start from client.start Make elasped time include time since client was initialized. So elapsed is as close as we can get to an overall request service time. May need to add rest_elapsed or some other subsystem based timers as we try to track a possible performance regression in 2.3.0.
author John Rouillard <rouilj@ieee.org>
date Wed, 25 Oct 2023 13:12:18 -0400
parents 5b3ecdfd77f7
children 3eca3462ba0c
comparison
equal deleted inserted replaced
7682:c9be8a3f96d9 7683:b04e222501b8
431 def __init__(self, client, db): 431 def __init__(self, client, db):
432 self.client = client 432 self.client = client
433 self.db = db 433 self.db = db
434 self.translator = client.translator 434 self.translator = client.translator
435 # record start time for statistics reporting 435 # record start time for statistics reporting
436 self.start = time.time() 436 self.start = client.start
437 # disable stat reporting by default enable with @stats=True 437 # disable stat reporting by default enable with @stats=True
438 # query param 438 # query param
439 self.report_stats = False 439 self.report_stats = False
440 # This used to be initialized from client.instance.actions which 440 # This used to be initialized from client.instance.actions which
441 # would include too many actions that do not make sense in the 441 # would include too many actions that do not make sense in the

Roundup Issue Tracker: http://roundup-tracker.org/