Turning on profiling Add zmodload zsh/zprof to the beginning of the .zshrc file and zprof at the end.