In pdflatex - how to find bottleneck of long compiling time for my document was the following code snippet given which gives out the compilation time for a site:
\usepackage{atbegshi}
\newcommand\showtimer{%
\message{^^Jtimer: \the\numexpr\the\pdfelapsedtime*1000/65536\relax}%
\pdfresettimer}
\AtBeginDocument{\showtimer}
\AtBeginShipout {\showtimer}
The example snippet was given for pdflatex, is it also valid for xelatex?
It was also given without a minimum working example, so where do I have to place it in a document, directly before \begin{document}?
\begin{document}). But no, it doesn't work for XeLaTeX because it uses a pdfTeX primitive\pdfelapsedtime. – Phelype Oleinik Aug 09 '18 at 18:31\writein the page header) then you can look at the creation times for each of the file the file writing will slow down the job but you should still see which are the slow pages. Or if you do not need exact times just watch the terminal output for [1]...[2]... etc and see where there is a pause. – David Carlisle Aug 09 '18 at 18:51\includegraphics, once I removed them the compiling time dropped from 2 minutes to 10 seconds. I will save the scatter plots as picture as workaround as long as no better solution exists. – Arrow Aug 19 '18 at 16:13\pdfresettimerin these? – sophros Nov 12 '22 at 10:57