thds.core 1.32.20250221201607__py3-none-any.whl → 1.32.20250224200438__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.
Potentially problematic release.
This version of thds.core might be problematic. Click here for more details.
- thds/core/meta.json +2 -2
- thds/core/prof.py +4 -3
- {thds.core-1.32.20250221201607.dist-info → thds.core-1.32.20250224200438.dist-info}/METADATA +1 -1
- {thds.core-1.32.20250221201607.dist-info → thds.core-1.32.20250224200438.dist-info}/RECORD +7 -7
- {thds.core-1.32.20250221201607.dist-info → thds.core-1.32.20250224200438.dist-info}/WHEEL +0 -0
- {thds.core-1.32.20250221201607.dist-info → thds.core-1.32.20250224200438.dist-info}/entry_points.txt +0 -0
- {thds.core-1.32.20250221201607.dist-info → thds.core-1.32.20250224200438.dist-info}/top_level.txt +0 -0
thds/core/meta.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"git_commit": "
|
|
2
|
+
"git_commit": "b45a7b6adfb277aac7102e9f8e317d764101a70e",
|
|
3
3
|
"git_branch": "main",
|
|
4
4
|
"git_is_clean": true,
|
|
5
|
-
"pyproject_version": "1.32.
|
|
5
|
+
"pyproject_version": "1.32.20250224200438",
|
|
6
6
|
"thds_user": "runner",
|
|
7
7
|
"misc": {}
|
|
8
8
|
}
|
thds/core/prof.py
CHANGED
|
@@ -26,6 +26,7 @@ To wrap a logger, simply use the output of `wrap_logger(YOUR_LOGGER)`
|
|
|
26
26
|
as your logger. It will automatically output profiling information on
|
|
27
27
|
every usage.
|
|
28
28
|
"""
|
|
29
|
+
|
|
29
30
|
import contextlib
|
|
30
31
|
import csv
|
|
31
32
|
import logging
|
|
@@ -101,8 +102,8 @@ def _get_cpu_percent(pid: int = -1) -> float:
|
|
|
101
102
|
|
|
102
103
|
|
|
103
104
|
_PID: int = 0
|
|
104
|
-
_CSV_OUT = None
|
|
105
|
-
_CSV_WRITER = None
|
|
105
|
+
_CSV_OUT: ty.Any = None
|
|
106
|
+
_CSV_WRITER: ty.Any = None
|
|
106
107
|
_PROFS_DIR = pathlib.Path("th-profiles")
|
|
107
108
|
|
|
108
109
|
|
|
@@ -196,7 +197,7 @@ class ThProfiler:
|
|
|
196
197
|
|
|
197
198
|
_TH_PROFILER = StackContext(
|
|
198
199
|
"__th_profiler",
|
|
199
|
-
ThProfiler("." * _TAG_LEN)
|
|
200
|
+
ThProfiler("." * _TAG_LEN),
|
|
200
201
|
# This root profiler exists simply to make sure that there's
|
|
201
202
|
# always a profiling context even if no function has been
|
|
202
203
|
# annotated with `context`.
|
|
@@ -24,11 +24,11 @@ thds/core/lazy.py,sha256=e1WvG4LsbEydV0igEr_Vl1cq05zlQNIE8MFYT90yglE,3289
|
|
|
24
24
|
thds/core/link.py,sha256=kmFJIFvEZc16-7S7IGvtTpzwl3VuvFl3yPlE6WJJ03w,5404
|
|
25
25
|
thds/core/logical_root.py,sha256=gWkIYRv9kNQfzbpxJaYiwNXVz1neZ2NvnvProtOn9d8,1399
|
|
26
26
|
thds/core/merge_args.py,sha256=7oj7dtO1-XVkfTM3aBlq3QlZbo8tb6X7E3EVIR-60t8,5781
|
|
27
|
-
thds/core/meta.json,sha256=
|
|
27
|
+
thds/core/meta.json,sha256=S-OuIpXa3UMY4xhDqU8znmq3tSi_tRZ6AfrQEv3XDo0,196
|
|
28
28
|
thds/core/meta.py,sha256=IPLAKrH06HooPMNf5FeqJvUcM-JljTGXddrAQ5oAX8E,16896
|
|
29
29
|
thds/core/parallel.py,sha256=HXAn9aIYqNE5rnRN5ypxR6CUucdfzE5T5rJ_MUv-pFk,7590
|
|
30
30
|
thds/core/pickle_visit.py,sha256=QNMWIi5buvk2zsvx1-D-FKL7tkrFUFDs387vxgGebgU,833
|
|
31
|
-
thds/core/prof.py,sha256=
|
|
31
|
+
thds/core/prof.py,sha256=5ViolfPsAPwUTHuhAe-bon7IArPGXydpGoB5uZmObDk,8264
|
|
32
32
|
thds/core/progress.py,sha256=4YGbxliDl1i-k-88w4s86uy1E69eQ6xJySGPSkpH1QM,3358
|
|
33
33
|
thds/core/protocols.py,sha256=4na2EeWUDWfLn5-SxfMmKegDSndJ5z-vwMhDavhCpEM,409
|
|
34
34
|
thds/core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -67,8 +67,8 @@ thds/core/sqlite/structured.py,sha256=swCbDoyVT6cE7Kl79Wh_rg5Z1-yrUDJbiVJF4bjset
|
|
|
67
67
|
thds/core/sqlite/types.py,sha256=oUkfoKRYNGDPZRk29s09rc9ha3SCk2SKr_K6WKebBFs,1308
|
|
68
68
|
thds/core/sqlite/upsert.py,sha256=BmKK6fsGVedt43iY-Lp7dnAu8aJ1e9CYlPVEQR2pMj4,5827
|
|
69
69
|
thds/core/sqlite/write.py,sha256=z0219vDkQDCnsV0WLvsj94keItr7H4j7Y_evbcoBrWU,3458
|
|
70
|
-
thds.core-1.32.
|
|
71
|
-
thds.core-1.32.
|
|
72
|
-
thds.core-1.32.
|
|
73
|
-
thds.core-1.32.
|
|
74
|
-
thds.core-1.32.
|
|
70
|
+
thds.core-1.32.20250224200438.dist-info/METADATA,sha256=POOFkJIO54vE1cJ-_hz7vsjxSxxnY58WtcTdzpjX3PY,2123
|
|
71
|
+
thds.core-1.32.20250224200438.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
72
|
+
thds.core-1.32.20250224200438.dist-info/entry_points.txt,sha256=bOCOVhKZv7azF3FvaWX6uxE6yrjK6FcjqhtxXvLiFY8,161
|
|
73
|
+
thds.core-1.32.20250224200438.dist-info/top_level.txt,sha256=LTZaE5SkWJwv9bwOlMbIhiS-JWQEEIcjVYnJrt-CriY,5
|
|
74
|
+
thds.core-1.32.20250224200438.dist-info/RECORD,,
|
|
File without changes
|
{thds.core-1.32.20250221201607.dist-info → thds.core-1.32.20250224200438.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{thds.core-1.32.20250221201607.dist-info → thds.core-1.32.20250224200438.dist-info}/top_level.txt
RENAMED
|
File without changes
|