kenenet 0.8.9__py3-none-any.whl → 0.9.1__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 +6 -6
- {kenenet-0.8.9.dist-info → kenenet-0.9.1.dist-info}/METADATA +1 -1
- kenenet-0.9.1.dist-info/RECORD +5 -0
- kenenet-0.8.9.dist-info/RECORD +0 -5
- {kenenet-0.8.9.dist-info → kenenet-0.9.1.dist-info}/WHEEL +0 -0
- {kenenet-0.8.9.dist-info → kenenet-0.9.1.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -299,7 +299,7 @@ def time_code(label=None):
|
|
299
299
|
if _current_context is None:
|
300
300
|
# First call - start timing
|
301
301
|
_current_context = label or f"timing_{len(_timings)}"
|
302
|
-
quick_print(f"
|
302
|
+
quick_print(f"Starting timer: {_current_context}")
|
303
303
|
_line_start_time = time.time()
|
304
304
|
_block_timings.clear()
|
305
305
|
_stack = []
|
@@ -362,12 +362,12 @@ def time_code(label=None):
|
|
362
362
|
_line_start_time = None
|
363
363
|
|
364
364
|
if not _timings[context]:
|
365
|
-
quick_print(f"No
|
365
|
+
quick_print(f"No times recorded: {context}")
|
366
366
|
return
|
367
367
|
|
368
368
|
sorted_timings = sorted(_timings[context], key=lambda x: x[2], reverse=True)
|
369
369
|
|
370
|
-
quick_print(f"\
|
370
|
+
quick_print(f"\nTime spent on each line: {context}")
|
371
371
|
quick_print("-" * 80)
|
372
372
|
quick_print(f"{'Line':>6} | {'Time':>12} | Code")
|
373
373
|
quick_print("-" * 80)
|
@@ -378,12 +378,12 @@ def time_code(label=None):
|
|
378
378
|
|
379
379
|
quick_print("-" * 80)
|
380
380
|
total_time = sum(elapsed for _, _, elapsed in _timings[context])
|
381
|
-
quick_print(f"Total execution time: {total_time
|
381
|
+
quick_print(f"Total execution time: {total_time:.6f}")
|
382
382
|
|
383
383
|
if _block_timings:
|
384
|
-
quick_print("\
|
384
|
+
quick_print("\nTime spent on chunks of code:")
|
385
385
|
quick_print("-" * 80)
|
386
|
-
quick_print(f"{'
|
386
|
+
quick_print(f"{'Chunks':^40} | {'Time':>12} | {'% of Time Spent':>10}")
|
387
387
|
quick_print("-" * 80)
|
388
388
|
|
389
389
|
# Sort block timings by time
|
@@ -0,0 +1,5 @@
|
|
1
|
+
kenenet/__init__.py,sha256=CKY529xoL2OuIzn_LmIDmgPUoVJb8pnNzI7oYUn2Zdg,16349
|
2
|
+
kenenet-0.9.1.dist-info/METADATA,sha256=dEhWYGEm7TMgXZTQwENMH7fGSljm3OfaduW5lV-9jV0,633
|
3
|
+
kenenet-0.9.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
+
kenenet-0.9.1.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
+
kenenet-0.9.1.dist-info/RECORD,,
|
kenenet-0.8.9.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
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,,
|
File without changes
|
File without changes
|