logger-36 2024.17__py3-none-any.whl → 2024.18__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.
- logger_36/__init__.py +0 -7
- logger_36/config/logger.py +103 -0
- logger_36/format.py +59 -0
- logger_36/{main.py → handler.py} +0 -43
- logger_36/logger.py +56 -0
- logger_36/logger_gpu.py +53 -0
- logger_36/measure.py +55 -0
- logger_36/storage.py +53 -0
- logger_36/task/measure/memory.py +1 -1
- logger_36/type/handler.py +2 -2
- logger_36/version.py +1 -1
- {logger_36-2024.17.dist-info → logger_36-2024.18.dist-info}/METADATA +1 -1
- {logger_36-2024.17.dist-info → logger_36-2024.18.dist-info}/RECORD +20 -14
- /logger_36/catalog/{logging → logger}/chronos.py +0 -0
- /logger_36/catalog/{logging → logger}/exception.py +0 -0
- /logger_36/catalog/{logging → logger}/gpu.py +0 -0
- /logger_36/catalog/{logging → logger}/memory.py +0 -0
- /logger_36/catalog/{logging → logger}/system.py +0 -0
- {logger_36-2024.17.dist-info → logger_36-2024.18.dist-info}/WHEEL +0 -0
- {logger_36-2024.17.dist-info → logger_36-2024.18.dist-info}/top_level.txt +0 -0
logger_36/__init__.py
CHANGED
@@ -5,13 +5,6 @@ SEE COPYRIGHT NOTICE BELOW
|
|
5
5
|
"""
|
6
6
|
|
7
7
|
from logger_36.instance.logger import LOGGER
|
8
|
-
from logger_36.main import (
|
9
|
-
AddConsoleHandler,
|
10
|
-
AddFileHandler,
|
11
|
-
AddGenericHandler,
|
12
|
-
AddRichConsoleHandler,
|
13
|
-
)
|
14
|
-
from logger_36.task.format.message import FormattedMessage
|
15
8
|
from logger_36.type.logger import logger_t
|
16
9
|
from logger_36.version import __version__
|
17
10
|
|
@@ -0,0 +1,103 @@
|
|
1
|
+
"""
|
2
|
+
Copyright CNRS/Inria/UniCA
|
3
|
+
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
|
+
SEE COPYRIGHT NOTICE BELOW
|
5
|
+
"""
|
6
|
+
|
7
|
+
import logging as lggg
|
8
|
+
|
9
|
+
from logger_36.catalog.handler.console import console_handler_t
|
10
|
+
from logger_36.catalog.handler.console_rich import console_rich_handler_t
|
11
|
+
from logger_36.catalog.handler.file import file_handler_t
|
12
|
+
from logger_36.catalog.handler.generic import generic_handler_t
|
13
|
+
from logger_36.constant.handler import HANDLER_CODES, handler_codes_h
|
14
|
+
from logger_36.instance.logger import LOGGER
|
15
|
+
from logger_36.task.format.message import FormattedMessage
|
16
|
+
|
17
|
+
|
18
|
+
def SetLOGLevel(
|
19
|
+
level: int,
|
20
|
+
/,
|
21
|
+
*,
|
22
|
+
logger: lggg.Logger | None = None,
|
23
|
+
which: handler_codes_h | str = "a",
|
24
|
+
) -> None:
|
25
|
+
"""
|
26
|
+
which: g=generic, c=console, f=file, a=all, str=name.
|
27
|
+
"""
|
28
|
+
if logger is None:
|
29
|
+
logger = LOGGER
|
30
|
+
|
31
|
+
which_is_name = which not in HANDLER_CODES
|
32
|
+
found = False
|
33
|
+
for handler in logger.handlers:
|
34
|
+
if (
|
35
|
+
(which == "a")
|
36
|
+
or ((which == "g") and isinstance(handler, generic_handler_t))
|
37
|
+
or (
|
38
|
+
(which == "c")
|
39
|
+
and isinstance(handler, (console_handler_t, console_rich_handler_t))
|
40
|
+
)
|
41
|
+
or ((which == "f") and isinstance(handler, file_handler_t))
|
42
|
+
or (which == handler.name)
|
43
|
+
):
|
44
|
+
handler.setLevel(level)
|
45
|
+
if which_is_name:
|
46
|
+
return
|
47
|
+
found = True
|
48
|
+
|
49
|
+
if not found:
|
50
|
+
raise ValueError(
|
51
|
+
FormattedMessage(
|
52
|
+
"Handler not found",
|
53
|
+
actual=which,
|
54
|
+
expected=f"{str(HANDLER_CODES)[1:-1]}, or a handler name",
|
55
|
+
)
|
56
|
+
)
|
57
|
+
|
58
|
+
|
59
|
+
"""
|
60
|
+
COPYRIGHT NOTICE
|
61
|
+
|
62
|
+
This software is governed by the CeCILL license under French law and
|
63
|
+
abiding by the rules of distribution of free software. You can use,
|
64
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
65
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
66
|
+
"http://www.cecill.info".
|
67
|
+
|
68
|
+
As a counterpart to the access to the source code and rights to copy,
|
69
|
+
modify and redistribute granted by the license, users are provided only
|
70
|
+
with a limited warranty and the software's author, the holder of the
|
71
|
+
economic rights, and the successive licensors have only limited
|
72
|
+
liability.
|
73
|
+
|
74
|
+
In this respect, the user's attention is drawn to the risks associated
|
75
|
+
with loading, using, modifying and/or developing or reproducing the
|
76
|
+
software by the user in light of its specific status of free software,
|
77
|
+
that may mean that it is complicated to manipulate, and that also
|
78
|
+
therefore means that it is reserved for developers and experienced
|
79
|
+
professionals having in-depth computer knowledge. Users are therefore
|
80
|
+
encouraged to load and test the software's suitability as regards their
|
81
|
+
requirements in conditions enabling the security of their systems and/or
|
82
|
+
data to be ensured and, more generally, to use and operate it in the
|
83
|
+
same conditions as regards security.
|
84
|
+
|
85
|
+
The fact that you are presently reading this means that you have had
|
86
|
+
knowledge of the CeCILL license and that you accept its terms.
|
87
|
+
|
88
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
89
|
+
|
90
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
91
|
+
member of team Morpheme.
|
92
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
93
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
94
|
+
I3S, and Laboratory iBV.
|
95
|
+
|
96
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
97
|
+
Inria: https://www.inria.fr/en/
|
98
|
+
UniCA: https://univ-cotedazur.eu/
|
99
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
100
|
+
I3S: https://www.i3s.unice.fr/en/
|
101
|
+
iBV: http://ibv.unice.fr/
|
102
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
103
|
+
"""
|
logger_36/format.py
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
"""
|
2
|
+
Copyright CNRS/Inria/UniCA
|
3
|
+
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
|
+
SEE COPYRIGHT NOTICE BELOW
|
5
|
+
"""
|
6
|
+
|
7
|
+
from logger_36.task.format.memory import FormattedUsage as FormattedMemoryUsage
|
8
|
+
from logger_36.task.format.memory import (
|
9
|
+
FormattedUsageWithAutoUnit as FormattedMemoryUsageWithAutoUnit,
|
10
|
+
)
|
11
|
+
from logger_36.task.format.memory import UsageBar as MemoryUsageBar
|
12
|
+
from logger_36.task.format.message import FormattedMessage
|
13
|
+
from logger_36.task.format.rule import Rule, RuleAsText
|
14
|
+
|
15
|
+
"""
|
16
|
+
COPYRIGHT NOTICE
|
17
|
+
|
18
|
+
This software is governed by the CeCILL license under French law and
|
19
|
+
abiding by the rules of distribution of free software. You can use,
|
20
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
21
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
22
|
+
"http://www.cecill.info".
|
23
|
+
|
24
|
+
As a counterpart to the access to the source code and rights to copy,
|
25
|
+
modify and redistribute granted by the license, users are provided only
|
26
|
+
with a limited warranty and the software's author, the holder of the
|
27
|
+
economic rights, and the successive licensors have only limited
|
28
|
+
liability.
|
29
|
+
|
30
|
+
In this respect, the user's attention is drawn to the risks associated
|
31
|
+
with loading, using, modifying and/or developing or reproducing the
|
32
|
+
software by the user in light of its specific status of free software,
|
33
|
+
that may mean that it is complicated to manipulate, and that also
|
34
|
+
therefore means that it is reserved for developers and experienced
|
35
|
+
professionals having in-depth computer knowledge. Users are therefore
|
36
|
+
encouraged to load and test the software's suitability as regards their
|
37
|
+
requirements in conditions enabling the security of their systems and/or
|
38
|
+
data to be ensured and, more generally, to use and operate it in the
|
39
|
+
same conditions as regards security.
|
40
|
+
|
41
|
+
The fact that you are presently reading this means that you have had
|
42
|
+
knowledge of the CeCILL license and that you accept its terms.
|
43
|
+
|
44
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
45
|
+
|
46
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
47
|
+
member of team Morpheme.
|
48
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
49
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
50
|
+
I3S, and Laboratory iBV.
|
51
|
+
|
52
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
53
|
+
Inria: https://www.inria.fr/en/
|
54
|
+
UniCA: https://univ-cotedazur.eu/
|
55
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
56
|
+
I3S: https://www.i3s.unice.fr/en/
|
57
|
+
iBV: http://ibv.unice.fr/
|
58
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
59
|
+
"""
|
logger_36/{main.py → handler.py}
RENAMED
@@ -12,9 +12,7 @@ from logger_36.catalog.handler.console import console_handler_t
|
|
12
12
|
from logger_36.catalog.handler.file import file_handler_t
|
13
13
|
from logger_36.catalog.handler.generic import generic_handler_t, interface_h
|
14
14
|
from logger_36.constant.error import MISSING_RICH_ERROR
|
15
|
-
from logger_36.constant.handler import HANDLER_CODES, handler_codes_h
|
16
15
|
from logger_36.instance.logger import LOGGER
|
17
|
-
from logger_36.task.format.message import FormattedMessage
|
18
16
|
|
19
17
|
try:
|
20
18
|
from logger_36.catalog.handler.console_rich import console_rich_handler_t
|
@@ -164,47 +162,6 @@ def AddFileHandler(
|
|
164
162
|
logger.AddHandler(handler, should_hold_messages)
|
165
163
|
|
166
164
|
|
167
|
-
def SetLOGLevel(
|
168
|
-
level: int,
|
169
|
-
/,
|
170
|
-
*,
|
171
|
-
logger: lggg.Logger | None = None,
|
172
|
-
which: handler_codes_h | str = "a",
|
173
|
-
) -> None:
|
174
|
-
"""
|
175
|
-
which: g=generic, c=console, f=file, a=all, str=name.
|
176
|
-
"""
|
177
|
-
if logger is None:
|
178
|
-
logger = LOGGER
|
179
|
-
|
180
|
-
which_is_name = which not in HANDLER_CODES
|
181
|
-
found = False
|
182
|
-
for handler in logger.handlers:
|
183
|
-
if (
|
184
|
-
(which == "a")
|
185
|
-
or ((which == "g") and isinstance(handler, generic_handler_t))
|
186
|
-
or (
|
187
|
-
(which == "c")
|
188
|
-
and isinstance(handler, (console_handler_t, console_rich_handler_t))
|
189
|
-
)
|
190
|
-
or ((which == "f") and isinstance(handler, file_handler_t))
|
191
|
-
or (which == handler.name)
|
192
|
-
):
|
193
|
-
handler.setLevel(level)
|
194
|
-
if which_is_name:
|
195
|
-
return
|
196
|
-
found = True
|
197
|
-
|
198
|
-
if not found:
|
199
|
-
raise ValueError(
|
200
|
-
FormattedMessage(
|
201
|
-
"Handler not found",
|
202
|
-
actual=which,
|
203
|
-
expected=f"{str(HANDLER_CODES)[1:-1]}, or a handler name",
|
204
|
-
)
|
205
|
-
)
|
206
|
-
|
207
|
-
|
208
165
|
"""
|
209
166
|
COPYRIGHT NOTICE
|
210
167
|
|
logger_36/logger.py
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
"""
|
2
|
+
Copyright CNRS/Inria/UniCA
|
3
|
+
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
|
+
SEE COPYRIGHT NOTICE BELOW
|
5
|
+
"""
|
6
|
+
|
7
|
+
from logger_36.catalog.logger.chronos import LogElapsedTime
|
8
|
+
from logger_36.catalog.logger.exception import LogException
|
9
|
+
from logger_36.catalog.logger.memory import LogMaximumMemoryUsage, LogMemoryUsages
|
10
|
+
from logger_36.catalog.logger.system import LogSystemDetails
|
11
|
+
|
12
|
+
"""
|
13
|
+
COPYRIGHT NOTICE
|
14
|
+
|
15
|
+
This software is governed by the CeCILL license under French law and
|
16
|
+
abiding by the rules of distribution of free software. You can use,
|
17
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
18
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
19
|
+
"http://www.cecill.info".
|
20
|
+
|
21
|
+
As a counterpart to the access to the source code and rights to copy,
|
22
|
+
modify and redistribute granted by the license, users are provided only
|
23
|
+
with a limited warranty and the software's author, the holder of the
|
24
|
+
economic rights, and the successive licensors have only limited
|
25
|
+
liability.
|
26
|
+
|
27
|
+
In this respect, the user's attention is drawn to the risks associated
|
28
|
+
with loading, using, modifying and/or developing or reproducing the
|
29
|
+
software by the user in light of its specific status of free software,
|
30
|
+
that may mean that it is complicated to manipulate, and that also
|
31
|
+
therefore means that it is reserved for developers and experienced
|
32
|
+
professionals having in-depth computer knowledge. Users are therefore
|
33
|
+
encouraged to load and test the software's suitability as regards their
|
34
|
+
requirements in conditions enabling the security of their systems and/or
|
35
|
+
data to be ensured and, more generally, to use and operate it in the
|
36
|
+
same conditions as regards security.
|
37
|
+
|
38
|
+
The fact that you are presently reading this means that you have had
|
39
|
+
knowledge of the CeCILL license and that you accept its terms.
|
40
|
+
|
41
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
42
|
+
|
43
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
44
|
+
member of team Morpheme.
|
45
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
46
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
47
|
+
I3S, and Laboratory iBV.
|
48
|
+
|
49
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
50
|
+
Inria: https://www.inria.fr/en/
|
51
|
+
UniCA: https://univ-cotedazur.eu/
|
52
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
53
|
+
I3S: https://www.i3s.unice.fr/en/
|
54
|
+
iBV: http://ibv.unice.fr/
|
55
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
56
|
+
"""
|
logger_36/logger_gpu.py
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
"""
|
2
|
+
Copyright CNRS/Inria/UniCA
|
3
|
+
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
|
+
SEE COPYRIGHT NOTICE BELOW
|
5
|
+
"""
|
6
|
+
|
7
|
+
from logger_36.catalog.logger.gpu import LogGPURelatedDetails
|
8
|
+
|
9
|
+
"""
|
10
|
+
COPYRIGHT NOTICE
|
11
|
+
|
12
|
+
This software is governed by the CeCILL license under French law and
|
13
|
+
abiding by the rules of distribution of free software. You can use,
|
14
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
15
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
16
|
+
"http://www.cecill.info".
|
17
|
+
|
18
|
+
As a counterpart to the access to the source code and rights to copy,
|
19
|
+
modify and redistribute granted by the license, users are provided only
|
20
|
+
with a limited warranty and the software's author, the holder of the
|
21
|
+
economic rights, and the successive licensors have only limited
|
22
|
+
liability.
|
23
|
+
|
24
|
+
In this respect, the user's attention is drawn to the risks associated
|
25
|
+
with loading, using, modifying and/or developing or reproducing the
|
26
|
+
software by the user in light of its specific status of free software,
|
27
|
+
that may mean that it is complicated to manipulate, and that also
|
28
|
+
therefore means that it is reserved for developers and experienced
|
29
|
+
professionals having in-depth computer knowledge. Users are therefore
|
30
|
+
encouraged to load and test the software's suitability as regards their
|
31
|
+
requirements in conditions enabling the security of their systems and/or
|
32
|
+
data to be ensured and, more generally, to use and operate it in the
|
33
|
+
same conditions as regards security.
|
34
|
+
|
35
|
+
The fact that you are presently reading this means that you have had
|
36
|
+
knowledge of the CeCILL license and that you accept its terms.
|
37
|
+
|
38
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
39
|
+
|
40
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
41
|
+
member of team Morpheme.
|
42
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
43
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
44
|
+
I3S, and Laboratory iBV.
|
45
|
+
|
46
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
47
|
+
Inria: https://www.inria.fr/en/
|
48
|
+
UniCA: https://univ-cotedazur.eu/
|
49
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
50
|
+
I3S: https://www.i3s.unice.fr/en/
|
51
|
+
iBV: http://ibv.unice.fr/
|
52
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
53
|
+
"""
|
logger_36/measure.py
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
"""
|
2
|
+
Copyright CNRS/Inria/UniCA
|
3
|
+
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
|
+
SEE COPYRIGHT NOTICE BELOW
|
5
|
+
"""
|
6
|
+
|
7
|
+
from logger_36.task.measure.chronos import ElapsedTime, TimeStamp
|
8
|
+
from logger_36.task.measure.memory import CanCheckUsage as CanCheckMemoryUsage
|
9
|
+
from logger_36.task.measure.memory import CurrentUsage as CurrentMemoryUsage
|
10
|
+
|
11
|
+
"""
|
12
|
+
COPYRIGHT NOTICE
|
13
|
+
|
14
|
+
This software is governed by the CeCILL license under French law and
|
15
|
+
abiding by the rules of distribution of free software. You can use,
|
16
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
17
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
18
|
+
"http://www.cecill.info".
|
19
|
+
|
20
|
+
As a counterpart to the access to the source code and rights to copy,
|
21
|
+
modify and redistribute granted by the license, users are provided only
|
22
|
+
with a limited warranty and the software's author, the holder of the
|
23
|
+
economic rights, and the successive licensors have only limited
|
24
|
+
liability.
|
25
|
+
|
26
|
+
In this respect, the user's attention is drawn to the risks associated
|
27
|
+
with loading, using, modifying and/or developing or reproducing the
|
28
|
+
software by the user in light of its specific status of free software,
|
29
|
+
that may mean that it is complicated to manipulate, and that also
|
30
|
+
therefore means that it is reserved for developers and experienced
|
31
|
+
professionals having in-depth computer knowledge. Users are therefore
|
32
|
+
encouraged to load and test the software's suitability as regards their
|
33
|
+
requirements in conditions enabling the security of their systems and/or
|
34
|
+
data to be ensured and, more generally, to use and operate it in the
|
35
|
+
same conditions as regards security.
|
36
|
+
|
37
|
+
The fact that you are presently reading this means that you have had
|
38
|
+
knowledge of the CeCILL license and that you accept its terms.
|
39
|
+
|
40
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
41
|
+
|
42
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
43
|
+
member of team Morpheme.
|
44
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
45
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
46
|
+
I3S, and Laboratory iBV.
|
47
|
+
|
48
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
49
|
+
Inria: https://www.inria.fr/en/
|
50
|
+
UniCA: https://univ-cotedazur.eu/
|
51
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
52
|
+
I3S: https://www.i3s.unice.fr/en/
|
53
|
+
iBV: http://ibv.unice.fr/
|
54
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
55
|
+
"""
|
logger_36/storage.py
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
"""
|
2
|
+
Copyright CNRS/Inria/UniCA
|
3
|
+
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
|
+
SEE COPYRIGHT NOTICE BELOW
|
5
|
+
"""
|
6
|
+
|
7
|
+
from logger_36.task.storage import SaveLOGasHTML, html_reader_t
|
8
|
+
|
9
|
+
"""
|
10
|
+
COPYRIGHT NOTICE
|
11
|
+
|
12
|
+
This software is governed by the CeCILL license under French law and
|
13
|
+
abiding by the rules of distribution of free software. You can use,
|
14
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
15
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
16
|
+
"http://www.cecill.info".
|
17
|
+
|
18
|
+
As a counterpart to the access to the source code and rights to copy,
|
19
|
+
modify and redistribute granted by the license, users are provided only
|
20
|
+
with a limited warranty and the software's author, the holder of the
|
21
|
+
economic rights, and the successive licensors have only limited
|
22
|
+
liability.
|
23
|
+
|
24
|
+
In this respect, the user's attention is drawn to the risks associated
|
25
|
+
with loading, using, modifying and/or developing or reproducing the
|
26
|
+
software by the user in light of its specific status of free software,
|
27
|
+
that may mean that it is complicated to manipulate, and that also
|
28
|
+
therefore means that it is reserved for developers and experienced
|
29
|
+
professionals having in-depth computer knowledge. Users are therefore
|
30
|
+
encouraged to load and test the software's suitability as regards their
|
31
|
+
requirements in conditions enabling the security of their systems and/or
|
32
|
+
data to be ensured and, more generally, to use and operate it in the
|
33
|
+
same conditions as regards security.
|
34
|
+
|
35
|
+
The fact that you are presently reading this means that you have had
|
36
|
+
knowledge of the CeCILL license and that you accept its terms.
|
37
|
+
|
38
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
39
|
+
|
40
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
41
|
+
member of team Morpheme.
|
42
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
43
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
44
|
+
I3S, and Laboratory iBV.
|
45
|
+
|
46
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
47
|
+
Inria: https://www.inria.fr/en/
|
48
|
+
UniCA: https://univ-cotedazur.eu/
|
49
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
50
|
+
I3S: https://www.i3s.unice.fr/en/
|
51
|
+
iBV: http://ibv.unice.fr/
|
52
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
53
|
+
"""
|
logger_36/task/measure/memory.py
CHANGED
logger_36/type/handler.py
CHANGED
@@ -18,7 +18,7 @@ from logger_36.constant.message import NEXT_LINE_PROLOGUE
|
|
18
18
|
from logger_36.constant.record import HIDE_WHERE_ATTR, SHOW_WHERE_ATTR
|
19
19
|
from logger_36.task.format.message import FormattedMessage, MessageFormat
|
20
20
|
from logger_36.task.measure.chronos import TimeStamp
|
21
|
-
from logger_36.task.measure.memory import
|
21
|
+
from logger_36.task.measure.memory import CanCheckUsage as CanCheckMemoryUsage
|
22
22
|
|
23
23
|
_MEMORY_MEASURE_ERROR = MEMORY_MEASURE_ERROR
|
24
24
|
|
@@ -53,7 +53,7 @@ class handler_extension_t:
|
|
53
53
|
if self.name is None:
|
54
54
|
self.name = TimeStamp()
|
55
55
|
|
56
|
-
if self.show_memory_usage and not
|
56
|
+
if self.show_memory_usage and not CanCheckMemoryUsage():
|
57
57
|
self.show_memory_usage = False
|
58
58
|
if _MEMORY_MEASURE_ERROR is not None:
|
59
59
|
print(_MEMORY_MEASURE_ERROR, file=sstm.stderr)
|
logger_36/version.py
CHANGED
@@ -1,17 +1,23 @@
|
|
1
|
-
logger_36/__init__.py,sha256=
|
2
|
-
logger_36/
|
3
|
-
logger_36/
|
1
|
+
logger_36/__init__.py,sha256=jHidpp6dmfJVdoiHkwTXBn1_u1HRaZj3BHS8jq71ZOE,2312
|
2
|
+
logger_36/format.py,sha256=mox36RRkNUWbeHo3XkGGlik2CoyswDvDehRDtZkrnD0,2558
|
3
|
+
logger_36/handler.py,sha256=oDOiZ3Cubg3GwqPw9V8Y5YjjjYAtEZpbLNeTJqcF0lA,6389
|
4
|
+
logger_36/logger.py,sha256=flRcn5-2L7yGfJusfnkQXzFQcX3Ljt-1_KWnA_I0new,2446
|
5
|
+
logger_36/logger_gpu.py,sha256=YYFk6aYQrBDJfxQaDm-ar16T6SlOSL6jJWTOgvpF4EU,2244
|
6
|
+
logger_36/measure.py,sha256=P507VNbVKAf4jYGnGX-3rlDrVbrYP0ZD3nxFmAFvhyI,2404
|
7
|
+
logger_36/storage.py,sha256=O8pDmiL0B3LJpKrhi8a9IMBXs6MwW6r1bMUn_cSDAaY,2246
|
8
|
+
logger_36/version.py,sha256=3G4H0J84ustq7x71CQYkqkC7rXvyvg3fWd6Pz0XWSTY,2206
|
4
9
|
logger_36/catalog/config/console_rich.py,sha256=1FWbfJK_DTmnnf1qytJ8O949dh5Bmkjb8MqbkaGN-AY,2718
|
5
10
|
logger_36/catalog/handler/console.py,sha256=1WLtmxZCBj0AxLu5xey3VIVBKm02bp-Rc-eZOiFtXnU,3893
|
6
11
|
logger_36/catalog/handler/console_rich.py,sha256=0qLbG2spohHT9K-mxpUNurSI4ct8o8F3QWI3PweLKtM,7347
|
7
12
|
logger_36/catalog/handler/file.py,sha256=GS5nsfp0j0mzPak7vz8E7U4e5H95os_qfDjdM1Ywf0g,4345
|
8
13
|
logger_36/catalog/handler/generic.py,sha256=COBZfZ-WqikLvnHVnqwabLoeAhVQrQTHIkMUiYqSJnU,7036
|
9
|
-
logger_36/catalog/
|
10
|
-
logger_36/catalog/
|
11
|
-
logger_36/catalog/
|
12
|
-
logger_36/catalog/
|
13
|
-
logger_36/catalog/
|
14
|
+
logger_36/catalog/logger/chronos.py,sha256=eLqQw8N9vaGO23OCf5RrYDPbUeu7epUvDt9rH-dN7i0,2522
|
15
|
+
logger_36/catalog/logger/exception.py,sha256=sL7sZ_bjNoof2xgOXvBzAi2xHrj7Pmjfkfhjzuy6NGs,2708
|
16
|
+
logger_36/catalog/logger/gpu.py,sha256=vUFSP17e7U4nenMi5IMlDiP3cZvXe6nqEDpoqzTavdg,3490
|
17
|
+
logger_36/catalog/logger/memory.py,sha256=Zel_UCnHqGAqf_YuKpvjt0OIOo9vwKYpFM9g_2bjir0,4790
|
18
|
+
logger_36/catalog/logger/system.py,sha256=FQ3w1zIN1ab6y8QYtcYDULhyJYy4iwTwHoDs8Mi2IdQ,3159
|
14
19
|
logger_36/config/issue.py,sha256=G-i5p6lhZCLAOa-VTMyL9ZonvGCvhdoQ5KZdSWgP-FU,2267
|
20
|
+
logger_36/config/logger.py,sha256=1uzuguWShCU13LtPBPs7tgP_iSnl3SE5hF-iqieaBYQ,3742
|
15
21
|
logger_36/config/memory.py,sha256=yCX5phsB_KJMr5xHpVUeOHFhAA7p_8yahP3X28VndOY,2217
|
16
22
|
logger_36/config/message.py,sha256=SP5hq83WU2gr1G4drne-HLRwArH_ciLzE8ffUGLutc0,2649
|
17
23
|
logger_36/config/system.py,sha256=HD8ZuwsXhEAExeZrww8YoDkQGMs4T5RDqQMb1W4qVgc,2477
|
@@ -32,12 +38,12 @@ logger_36/task/format/memory.py,sha256=ECOdHjdxIqXivOwtcmwpLDMYUrutIeOTCn1L4d3-U
|
|
32
38
|
logger_36/task/format/message.py,sha256=X9qtXPxhXgCIjnRYBJn93vj4rW4I-7dJP6LaXD5Qu2o,4142
|
33
39
|
logger_36/task/format/rule.py,sha256=YEe8wG_QLy9vRZqmT2bWlvKT-Dxp4pGaZVmEuwwODyE,2598
|
34
40
|
logger_36/task/measure/chronos.py,sha256=t-y0bVm1SmF-3wI9pR9Bp6-qzVlsE94fZTZr5a_hZUA,2884
|
35
|
-
logger_36/task/measure/memory.py,sha256=
|
36
|
-
logger_36/type/handler.py,sha256=
|
41
|
+
logger_36/task/measure/memory.py,sha256=eVw5WOYLyn8o4O4mMArdX2MzsVuhhNDovjYEkk-MIaU,2504
|
42
|
+
logger_36/type/handler.py,sha256=BXpevZhLq5V_IdUfi_LZA4czzlH2SGLpgvbqUBe5X10,8311
|
37
43
|
logger_36/type/issue.py,sha256=cB8pSSJg9aqFPQ6yJr4TC2kJbngKGK8Hyq4ATBm6jAc,2973
|
38
44
|
logger_36/type/logger.py,sha256=TpE8OBS5YvnI6OO-aWwUWnjwEnuGW9toleVQs3pfhnk,14268
|
39
45
|
logger_36/type/loggers.py,sha256=znqxWBnfQxvkg3VUfbTUvt3S6Kq0DAzWWepxQDt9suI,2871
|
40
|
-
logger_36-2024.
|
41
|
-
logger_36-2024.
|
42
|
-
logger_36-2024.
|
43
|
-
logger_36-2024.
|
46
|
+
logger_36-2024.18.dist-info/METADATA,sha256=eMY6QxYgHHvn7VvWKGpzbfTClaoBU_3NK1XjFpO_Ykw,6276
|
47
|
+
logger_36-2024.18.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
48
|
+
logger_36-2024.18.dist-info/top_level.txt,sha256=sM95BTMWmslEEgR_1pzwZsOeSp8C_QBiu8ImbFr0XLc,10
|
49
|
+
logger_36-2024.18.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|