omlish 0.0.0.dev322__py3-none-any.whl → 0.0.0.dev323__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.
- omlish/__about__.py +2 -2
- omlish/diag/procstats.py +2 -2
- omlish/testing/pytest/__init__.py +1 -0
- omlish/testing/pytest/marks.py +14 -0
- omlish/testing/pytest/plugins/switches.py +1 -0
- {omlish-0.0.0.dev322.dist-info → omlish-0.0.0.dev323.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev322.dist-info → omlish-0.0.0.dev323.dist-info}/RECORD +11 -10
- {omlish-0.0.0.dev322.dist-info → omlish-0.0.0.dev323.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev322.dist-info → omlish-0.0.0.dev323.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev322.dist-info → omlish-0.0.0.dev323.dist-info}/licenses/LICENSE +0 -0
- {omlish-0.0.0.dev322.dist-info → omlish-0.0.0.dev323.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
omlish/diag/procstats.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import dataclasses as dc
|
2
1
|
import os
|
3
2
|
import typing as ta
|
4
3
|
|
4
|
+
from .. import dataclasses as dc
|
5
5
|
from .. import lang
|
6
6
|
|
7
7
|
|
@@ -35,7 +35,7 @@ def times() -> Times:
|
|
35
35
|
class ProcStats:
|
36
36
|
pid: int
|
37
37
|
|
38
|
-
rss: int
|
38
|
+
rss: int = dc.xfield(repr_fn=lambda i: f'{i:_}')
|
39
39
|
|
40
40
|
|
41
41
|
def get_psutil_procstats(pid: int | None = None) -> ProcStats:
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import gc
|
2
|
+
import typing as ta
|
3
|
+
|
4
|
+
import pytest
|
5
|
+
|
6
|
+
from .plugins.managermarks import ManagerMark
|
7
|
+
|
8
|
+
|
9
|
+
class gc_collect_after(ManagerMark): # noqa
|
10
|
+
def __call__(self, item: pytest.Function) -> ta.Iterator[None]:
|
11
|
+
try:
|
12
|
+
yield
|
13
|
+
finally:
|
14
|
+
gc.collect()
|
@@ -1,5 +1,5 @@
|
|
1
1
|
omlish/.manifests.json,sha256=orgsRvtpHu8tdhaCvlP9v3P495OJopYYiHKjK68WtWg,8587
|
2
|
-
omlish/__about__.py,sha256=
|
2
|
+
omlish/__about__.py,sha256=waRtG1tK0mUhn3ofWu_HrGZyXve5QhABAM2OAKg3_hE,3478
|
3
3
|
omlish/__init__.py,sha256=SsyiITTuK0v74XpKV8dqNaCmjOlan1JZKrHQv5rWKPA,253
|
4
4
|
omlish/c3.py,sha256=rer-TPOFDU6fYq_AWio_AmA-ckZ8JDY5shIzQ_yXfzA,8414
|
5
5
|
omlish/cached.py,sha256=MLap_p0rdGoDIMVhXVHm1tsbcWobJF0OanoodV03Ju8,542
|
@@ -209,7 +209,7 @@ omlish/diag/debug.py,sha256=ClED7kKXeVMyKrjGIxcq14kXk9kvUJfytBQwK9y7c4Q,1637
|
|
209
209
|
omlish/diag/lslocks.py,sha256=fWI3SZwgEkhipVfSqvzVzREJRShcDYmlYByHBT0LToc,1744
|
210
210
|
omlish/diag/lsof.py,sha256=DnowqvKYah-WCuBHS3DAcZCvlsWJdM9kYNFq97UZDDA,9127
|
211
211
|
omlish/diag/procfs.py,sha256=KaGTAA2Gj8eEEp7MjClRe4aimwzd-HDABThFzvq2cBQ,9684
|
212
|
-
omlish/diag/procstats.py,sha256=
|
212
|
+
omlish/diag/procstats.py,sha256=EJEe2Zc58ykBoTfqMXro7H52aQa_pd6uC2hsIPFceso,825
|
213
213
|
omlish/diag/ps.py,sha256=b7ai9O4mGZliNFvBu6PdQfMmct4qpcMTygEf1ISHBLQ,1666
|
214
214
|
omlish/diag/pycharm.py,sha256=Z2W-Viqw5xq08ZC4z36skpozfYw_qNNhWQx_GYr2D0k,4695
|
215
215
|
omlish/diag/pydevd.py,sha256=UN55ZjkWLCVyHxE2CNRRYamuvSKfzWsn0D5oczRTXO4,7536
|
@@ -738,8 +738,9 @@ omlish/term/vt100/states.py,sha256=OxPUxfFTcfz56MhtDgIigEApChOtN6XO1g6R2H08mu4,8
|
|
738
738
|
omlish/term/vt100/terminal.py,sha256=KUlg331ele7P6SHsBKdbpdQFDKsxSply1Ds27NkppTs,9359
|
739
739
|
omlish/testing/__init__.py,sha256=M_BQrcCHkoL-ZvE-UpQ8XxXNYRRawhjUz4rCJnAqM2A,152
|
740
740
|
omlish/testing/testing.py,sha256=zmBHw5gw1ZUUcDYC0uonSThjhRn0HNuorjpo0jLvju8,2885
|
741
|
-
omlish/testing/pytest/__init__.py,sha256=
|
741
|
+
omlish/testing/pytest/__init__.py,sha256=i4ti6Q2rVYJ-XBk9UYDfUUagCrEDTC5jOeSykBjYYZQ,234
|
742
742
|
omlish/testing/pytest/helpers.py,sha256=HxiKvpJQ4b6WCiQXOqQTqKbmr7CMAgCF6hViT6pfIuw,202
|
743
|
+
omlish/testing/pytest/marks.py,sha256=qhVnq-3LlQ5uRLS1LXYkh8Xk-8aQGOgs2Nr49T8YqOA,280
|
743
744
|
omlish/testing/pytest/skip.py,sha256=imDrBhQKQkEmStaSn0Js-zsfyKMPmNod-mW1ANdIhak,989
|
744
745
|
omlish/testing/pytest/inject/__init__.py,sha256=pdRKv1HcDmJ_yArKJbYITPXXZthRSGgBJWqITr0Er38,117
|
745
746
|
omlish/testing/pytest/inject/harness.py,sha256=_Qf7lLcYc_dpauYOE68u_a65jPCFWmQUYv9m_OOdNqs,5724
|
@@ -752,7 +753,7 @@ omlish/testing/pytest/plugins/pydevd.py,sha256=5moE64LrNRV6gKRaeCuONDiwuh-4UFxJP
|
|
752
753
|
omlish/testing/pytest/plugins/repeat.py,sha256=jiZCI-17042jBvUEbZCxNwqWtr7s3EhTBSeSHh_Uz4E,497
|
753
754
|
omlish/testing/pytest/plugins/skips.py,sha256=eMir_n777Kk2BvOwjQzRROKL4iAMYKSHFwWCHJ-bdPI,1040
|
754
755
|
omlish/testing/pytest/plugins/spacing.py,sha256=tzq-L-exegHe2BImumkYIsVcUwpUUhLJJOuSrsKDuCU,706
|
755
|
-
omlish/testing/pytest/plugins/switches.py,sha256=
|
756
|
+
omlish/testing/pytest/plugins/switches.py,sha256=t4kzdB_4Isp_cUtseKKMGHZ6cTriX3VGrzuqmNHCgMg,5210
|
756
757
|
omlish/testing/pytest/plugins/utils.py,sha256=L5C622UXcA_AUKDcvyh5IMiRfqSGGz0McdhwZWvfMlU,261
|
757
758
|
omlish/testing/pytest/plugins/asyncs/__init__.py,sha256=TTNhFmP_krug1973sq_bpWBTIvg68-1nbuVLSs92Z6k,41
|
758
759
|
omlish/testing/pytest/plugins/asyncs/consts.py,sha256=0NOCkzV43dOu3u97BqYMQ4mPG8JuFncpWibkOZpCqX4,55
|
@@ -856,9 +857,9 @@ omlish/typedvalues/holder.py,sha256=ZTnHiw-K38ciOBLEdwgrltr7Xp8jjEs_0Lp69DH-G-o,
|
|
856
857
|
omlish/typedvalues/marshal.py,sha256=hWHRLcrGav7lvXJDtb9bNI0ickl4SKPQ6F4BbTpqw3A,4219
|
857
858
|
omlish/typedvalues/reflect.py,sha256=Ih1YgU-srUjsvBn_P7C66f73_VCvcwqE3ffeBnZBgt4,674
|
858
859
|
omlish/typedvalues/values.py,sha256=ym46I-q2QJ_6l4UlERqv3yj87R-kp8nCKMRph0xQ3UA,1307
|
859
|
-
omlish-0.0.0.
|
860
|
-
omlish-0.0.0.
|
861
|
-
omlish-0.0.0.
|
862
|
-
omlish-0.0.0.
|
863
|
-
omlish-0.0.0.
|
864
|
-
omlish-0.0.0.
|
860
|
+
omlish-0.0.0.dev323.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
861
|
+
omlish-0.0.0.dev323.dist-info/METADATA,sha256=oZ0YuFkbcP8WOFL-3gcPwZj-reqUfq5mLn8EIveBtJs,4416
|
862
|
+
omlish-0.0.0.dev323.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
863
|
+
omlish-0.0.0.dev323.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
864
|
+
omlish-0.0.0.dev323.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
865
|
+
omlish-0.0.0.dev323.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|