From d107dd9fa0f5d837adb952fb8cb3f8b3b0b9804c Mon Sep 17 00:00:00 2001 From: Thais Siqueira Date: Fri, 26 Aug 2016 15:22:21 -0300 Subject: Corrected the patch to measure returnValue on inlineCallbacks The inlineCallback returnValue has a different logic using exceptions, the way we measured before, we were getting the time of the whole deferred chain (including all the callbacks) instead of exclusively the timing of the last yield up to the returnValue call. --- service/test/reactor/defer.patch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'service') diff --git a/service/test/reactor/defer.patch b/service/test/reactor/defer.patch index 296112f4..06f49706 100644 --- a/service/test/reactor/defer.patch +++ b/service/test/reactor/defer.patch @@ -43,9 +43,11 @@ > if currentItem: > clock.stop('deferred') > -1123a1160,1161 +1123a1160 > currentThreadId = threading.current_thread().ident -> c = Clock("%s in thread %d" % (str(g.gi_code), currentThreadId)) -1175a1214,1215 -> finally: +1127a1165 +> c = Clock("%s in thread %d" % (str(g.gi_code), currentThreadId)) +1128a1167 +> c.stop('inlineCallback') +1133a1173 > c.stop('inlineCallback') -- cgit v1.2.3