Skip to content

Commit beb804c

Browse files
committed
Pass cycle and cvus to midCycle hook
1 parent 12df012 commit beb804c

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ FunkLoad GIT master
2222
New Features
2323
~~~~~~~~~~~~~~
2424

25+
* Support https proxy (http proxy was already supported)
26+
2527
* Add a midCycle hook to execute an action in the middle of a cycle
2628

2729
* Add -L options to fl-record to enable tcpwatch forwarded mode

src/funkload/BenchRunner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def run(self):
332332
trace(' done.\n')
333333
self.startMonitors(monitor_key)
334334
self.startThreads(cycle, cvus)
335-
self.logging()
335+
self.logging(cycle, cvus)
336336
#self.dumpThreads()
337337
self.stopThreads()
338338
self.stopMonitors(monitor_key)
@@ -426,7 +426,7 @@ def createThreads(self, cycle, number_of_threads):
426426
trace(' done.\n')
427427
return threads
428428

429-
def logging(self):
429+
def logging(self, cycle, cvus):
430430
"""Log activity during duration."""
431431
duration = self.duration
432432
end_time = time.time() + duration
@@ -436,7 +436,7 @@ def logging(self):
436436
set_recording_flag(True)
437437
while time.time() < mid_time:
438438
time.sleep(1)
439-
self.test.midCycle()
439+
self.test.midCycle(cycle, cvus)
440440
while time.time() < end_time:
441441
# wait
442442
time.sleep(1)

src/funkload/FunkLoadTestCase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,8 @@ def setUpCycle(self):
729729
"""Called on bench mode before a cycle start."""
730730
pass
731731

732-
def midCycle(self):
733-
"""Called in the middle of the cycle."""
732+
def midCycle(self, cycle, cvus):
733+
"""Called in the middle of a bench cycle."""
734734
pass
735735

736736
def tearDownCycle(self):

0 commit comments

Comments
 (0)