How to debug slow terminal prompt? Ever since I upgraded to Mavericks, the Terminal prompt became a bit slower at coming back. It's not a huge deal, but there's now a slight noticeable delay before the prompt comes back (maybe like a quarter of a second)  which gets annoying over time.

How would I debug this issue? Basically, is there a way to see what exactly it's doing in that time? What are common causes of such a slow down?
I was encountering a 5-second lag (!) between Terminal window creation and receiving a bash prompt.  (This was on a fresh install of Mavericks on which I had copied user profiles from another machine.)  I removed all the *.asl files in /private/var/log/asl/ as mentioned here, and it completely solved my lag issue.  Thanks.