For some reason my document takes very long to compile, and I would like to narrow down why this happens. Finding the bottleneck would be greatly eased if I could time how long individual sections in the code take to compile.
The first and obvious question is: (1) Is there a 'profiler' package that returns how long parts of my documents take to compile?
Such a package should record, for example, how long individual Ti k Z pictures take to compile.
If this should not be an option, I have a second question: (2) Is it possible to output statements into the terminal?
If there was something like a command
"shellout(print "Now compiling PGF Plot of weather data..."), that would print a statement in the terminal among all those LaTeX warnings I get, I could at least stop the time myself.