Skip to content

How to redirect time's output? #10255

Closed Answered by faho
Catizard asked this question in Q&A
Jan 24, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can't redirect the output of fish's time keyword, no.

If you want to profile a script, you can use fish's --profile commandline option, like

fish --profile /tmp/my.prof /path/to/your/script

This will then give you a full list of what took how long.

Alternatively, if you want to benchmark it, you can use https://github.com/sharkdp/hyperfine/.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Catizard
Comment options

Answer selected by Catizard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants