mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-21 19:03:11 +00:00
parse.zsh: Use zprof
This commit is contained in:
parent
8b79ecd6fc
commit
1bb5ebd43a
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,7 @@ else
|
|||
exit 1
|
||||
fi
|
||||
|
||||
zmodload zsh/zprof
|
||||
autoload is-at-least
|
||||
|
||||
# Own input?
|
||||
|
@ -57,6 +58,7 @@ if [[ "$1" = "-o" ]]; then
|
|||
done
|
||||
|
||||
print "Running time: $SECONDS"
|
||||
zprof | head
|
||||
# File input?
|
||||
elif [[ -r "$1" ]]; then
|
||||
# Load from given file
|
||||
|
@ -70,6 +72,7 @@ elif [[ -r "$1" ]]; then
|
|||
-hsmw-highlight-process "$buf"
|
||||
|
||||
print "Running time: $SECONDS"
|
||||
zprof | head
|
||||
|
||||
# This output can be diffed to detect changes in operation
|
||||
if [[ -z "$2" ]]; then
|
||||
|
|
Loading…
Reference in a new issue