Commit 1f1f581
authored
Converted perf function to be a macro. Utilized the perf macro within the polars plugin. (#13224)
In this pull request, I converted the `perf` function within `nu_utils`
to a macro. This change facilitates easier usage within plugins by
allowing the use of `env_logger` and setting `RUST_LOG=nu_plugin_polars`
(or another plugin). Without this conversion, the `RUST_LOG` variable
would need to be set to `RUST_LOG=nu_utils::utils`, which is less
intuitive and impossible to narrow the perf results to one plugin.1 parent 0d79b63 commit 1f1f581
12 files changed
Lines changed: 154 additions & 524 deletions
File tree
- crates
- nu-cli/src
- nu-utils/src
- nu_plugin_polars
- src
- cache
- dataframe/eager
- src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 59 | + | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
| |||
137 | 134 | | |
138 | 135 | | |
139 | 136 | | |
140 | | - | |
| 137 | + | |
141 | 138 | | |
142 | 139 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 140 | + | |
147 | 141 | | |
148 | 142 | | |
149 | 143 | | |
| |||
156 | 150 | | |
157 | 151 | | |
158 | 152 | | |
159 | | - | |
| 153 | + | |
160 | 154 | | |
161 | 155 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 156 | + | |
166 | 157 | | |
167 | 158 | | |
168 | 159 | | |
| |||
381 | 372 | | |
382 | 373 | | |
383 | 374 | | |
384 | | - | |
| 375 | + | |
385 | 376 | | |
386 | 377 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
| 378 | + | |
391 | 379 | | |
392 | 380 | | |
393 | 381 | | |
0 commit comments