kenenet 0.9.7__py3-none-any.whl → 1.0.0__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.9.7.dist-info → kenenet-1.0.0.dist-info}/METADATA +1 -1
- kenenet-1.0.0.dist-info/RECORD +5 -0
- kenenet-0.9.7.dist-info/RECORD +0 -5
- {kenenet-0.9.7.dist-info → kenenet-1.0.0.dist-info}/WHEEL +0 -0
- {kenenet-0.9.7.dist-info → kenenet-1.0.0.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -287,7 +287,7 @@ _block_timings = defaultdict(float)
|
|
287
287
|
_current_context = None
|
288
288
|
_line_start_time = None
|
289
289
|
_stack = []
|
290
|
-
_ignore_line = {'frame = inspect.currentframe().f_back', 'filename = frame.f_code.co_filename', 'if _current_context is None:', 'sys.settrace(None)', 'currentframe'}
|
290
|
+
_ignore_line = {'frame = inspect.currentframe().f_back', 'filename = frame.f_code.co_filename', 'if _current_context is None:', 'sys.settrace(None)', 'Function: currentframe'}
|
291
291
|
|
292
292
|
def time_code(label=None):
|
293
293
|
global _current_context, _timings, _line_start_time, _block_timings, _stack, _ignore_line
|
@@ -390,8 +390,9 @@ def time_code(label=None):
|
|
390
390
|
sorted_blocks = sorted(_block_timings.items(), key=lambda x: x[1], reverse=True)
|
391
391
|
|
392
392
|
for block, elapsed in sorted_blocks:
|
393
|
-
|
394
|
-
|
393
|
+
if block not in _ignore_line:
|
394
|
+
percentage = (elapsed / total_time) * 100 if total_time > 0 else 0
|
395
|
+
quick_print(f"{block[:40]:40} | {elapsed:12.6f} | {percentage:10.2f}%")
|
395
396
|
|
396
397
|
quick_print("-" * 80)
|
397
398
|
|
@@ -0,0 +1,5 @@
|
|
1
|
+
kenenet/__init__.py,sha256=ItADdK783GGIT5lJiBRAH-5u4xt7Gnx7Sq0J65ymHWU,16430
|
2
|
+
kenenet-1.0.0.dist-info/METADATA,sha256=Bso5PLesPCvPKb1ZTdIA7mDORJoE7qdAREsBP89DSYU,633
|
3
|
+
kenenet-1.0.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
+
kenenet-1.0.0.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
+
kenenet-1.0.0.dist-info/RECORD,,
|
kenenet-0.9.7.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
kenenet/__init__.py,sha256=Nipv-MgQBf0nS11_zniIR6ScarwbZhSO31rhyqo3IR0,16365
|
2
|
-
kenenet-0.9.7.dist-info/METADATA,sha256=9OMNulqnna-wDVjAbXGnpij63OZtVpM6EBinCsFRRlY,633
|
3
|
-
kenenet-0.9.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
-
kenenet-0.9.7.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
-
kenenet-0.9.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|