Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
"Profiling" my startup scripts
- X-seq: zsh-users 16590
- From: "Daniel Serodio (lists)" <daniel.lists@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: "Profiling" my startup scripts
- Date: Wed, 23 Nov 2011 19:04:04 -0200
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I have somewhat complex .zshrc and .zshenv startup scripts that I've
improved over the years, running Linux. Now I'm using OSX and something
in these scripts is taking more time than usual, and I'd like to
"profile" them, ie. find out how long each step takes.
My first idea was to add a $(date) execution to PS4, but I found that it
doesn't work in zsh (it works in bash).
Do you have any suggestions about a better way to profile my startup
scripts?
Also, would you add this feature (command execution substitution in PS4)
to zsh?
Thanks in advance,
Daniel Serodio
Messages sorted by:
Reverse Date,
Date,
Thread,
Author