kenenet 0.8.8__py3-none-any.whl → 0.8.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kenenet/__init__.py +4 -3
- {kenenet-0.8.8.dist-info → kenenet-0.8.9.dist-info}/METADATA +1 -1
- kenenet-0.8.9.dist-info/RECORD +5 -0
- kenenet-0.8.8.dist-info/RECORD +0 -5
- {kenenet-0.8.8.dist-info → kenenet-0.8.9.dist-info}/WHEEL +0 -0
- {kenenet-0.8.8.dist-info → kenenet-0.8.9.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -287,10 +287,10 @@ _block_timings = defaultdict(float)
|
|
287
287
|
_current_context = None
|
288
288
|
_line_start_time = None
|
289
289
|
_stack = []
|
290
|
-
|
290
|
+
_ignore_line = {'frame = inspect.currentframe().f_back', 'filename = frame.f_code.co_filename', 'if _current_context is None:', 'sys.settrace(None)'}
|
291
291
|
|
292
292
|
def time_code(label=None):
|
293
|
-
global _current_context, _timings, _line_start_time, _block_timings, _stack
|
293
|
+
global _current_context, _timings, _line_start_time, _block_timings, _stack, _ignore_line
|
294
294
|
|
295
295
|
# Get the frame of the caller
|
296
296
|
frame = inspect.currentframe().f_back
|
@@ -373,7 +373,8 @@ def time_code(label=None):
|
|
373
373
|
quick_print("-" * 80)
|
374
374
|
|
375
375
|
for lineno, line_content, elapsed in sorted_timings:
|
376
|
-
|
376
|
+
if line_content not in _ignore_line:
|
377
|
+
quick_print(f"{lineno:6d} | {elapsed:12.6f} | {line_content}")
|
377
378
|
|
378
379
|
quick_print("-" * 80)
|
379
380
|
total_time = sum(elapsed for _, _, elapsed in _timings[context])
|
@@ -0,0 +1,5 @@
|
|
1
|
+
kenenet/__init__.py,sha256=doeaA08kcNBtjJHt6BXchaq45gtJJBWrNTd6YUdqbUk,16437
|
2
|
+
kenenet-0.8.9.dist-info/METADATA,sha256=18f_3LvXexRheqPIz2cRqo_xPKovCSOsa9qcGKM3r0w,633
|
3
|
+
kenenet-0.8.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
+
kenenet-0.8.9.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
+
kenenet-0.8.9.dist-info/RECORD,,
|
kenenet-0.8.8.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
kenenet/__init__.py,sha256=Zv3A0UQ3NsHqM7OxO0cII3NHmlUvzhArwKxuX2Ch4Nk,16220
|
2
|
-
kenenet-0.8.8.dist-info/METADATA,sha256=tHUmAN5bqgsw9FMtMs9u-1ehqHoTg8ekwBmexpfp_9A,633
|
3
|
-
kenenet-0.8.8.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
-
kenenet-0.8.8.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
-
kenenet-0.8.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|