File tree 9 files changed +312
-405
lines changed
9 files changed +312
-405
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ uv add {libraries}
194
194
│ └── tools/
195
195
│ ├── test__config.py
196
196
│ ├── test__logger.py
197
- │ └── test__trace .py
197
+ │ └── test__tracer .py
198
198
├── tools/
199
199
│ ├── config/
200
200
│ │ ├── __init__.py
@@ -208,7 +208,7 @@ uv add {libraries}
208
208
│ │ ├── logger.py
209
209
│ │ ├── style.py
210
210
│ │ └── type.py
211
- │ ├── trace /
211
+ │ ├── tracer /
212
212
│ │ ├── __init__.py
213
213
│ │ └── timer.py
214
214
│ └── __init__.py
Original file line number Diff line number Diff line change 4
4
``` {.py hl_lines="6"}
5
5
import time
6
6
7
- from tools.trace import Timer
7
+ from tools.tracer import Timer
8
8
9
9
10
10
@Timer (" sleep" )
@@ -24,7 +24,7 @@ sleep(1)
24
24
``` {.py hl_lines="5"}
25
25
import time
26
26
27
- from tools.trace import Timer
27
+ from tools.tracer import Timer
28
28
29
29
with Timer(" examples" ):
30
30
time.sleep(1 )
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ The environment includes uv and Ruff.
30
30
│ └── tools/
31
31
│ ├── test__config.py
32
32
│ ├── test__logger.py
33
- │ └── test__trace .py
33
+ │ └── test__tracer .py
34
34
├── tools/
35
35
│ ├── config/
36
36
│ │ ├── __init__.py
@@ -44,7 +44,7 @@ The environment includes uv and Ruff.
44
44
│ │ ├── logger.py
45
45
│ │ ├── style.py
46
46
│ │ └── type.py
47
- │ ├── trace /
47
+ │ ├── tracer /
48
48
│ │ ├── __init__.py
49
49
│ │ └── timer.py
50
50
│ └── __init__.py
Original file line number Diff line number Diff line change 62
62
- guides/tools/index.md
63
63
- config : guides/tools/config.md
64
64
- logger : guides/tools/logger.md
65
- - trace : guides/tools/trace .md
65
+ - trace : guides/tools/tracer .md
66
66
- Configurations :
67
67
- configurations/index.md
68
68
- uv : configurations/uv.md
Original file line number Diff line number Diff line change 1
- from tools .trace import Timer
1
+ from tools .tracer import Timer
2
2
3
3
4
4
class TestTimer :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ """Tracer."""
2
+
3
+ from tools .tracer .timer import Timer
4
+
5
+ __all__ = [
6
+ "Timer" ,
7
+ ]
Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ class Timer(ContextDecorator):
8
8
Examples:
9
9
>>> import time
10
10
>>>
11
- >>> from tools.trace import Timer
11
+ >>> from tools.tracer import Timer
12
12
>>>
13
13
>>> with Timer("examples"):
14
14
>>> time.sleep(1)
15
15
16
16
>>> import time
17
17
>>>
18
- >>> from tools.trace import Timer
18
+ >>> from tools.tracer import Timer
19
19
>>>
20
20
>>>
21
21
>>> @Timer("sleep")
You can’t perform that action at this time.
0 commit comments