lprof is a line-by-line frequency profiler. It reports whether and how many times each line of source code was executed. It lets you identify the unexecuted and most frequently executed parts of your code.