profile
for debug> profile {flags} (closure)
--source, -
: Collect source code in the report--values, -
: Collect values in the report--max-depth, -d {int}
: How many levels of blocks to step into (default: 1)closure
: the closure to runinput | output |
---|---|
any | table |
Profile some code, stepping into the spam
command and collecting source.
>defspam [] { "spam" };profile {|| spam|str length } -d2--source
The command collects run time of every pipeline element, recursively stepping into child closures until a maximum depth. Optionally, it also collects the source code and intermediate values.
Current known limitations are:
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/profile.html