TEXPROF(1)
π TEXPROF(1) β the manual page, but make it a group chat π
okay bestie, gather round β this is the texprof page from the General Commands Manual. It's the TeX profiler. Yes, the profiler. Not the compiler. Not the typesetter. The one that β¨ times things β¨. Buckle up. π
πΈ NAME πΈ
texprof β a profiler for TeX source files. It's giving "stopwatch but make it TeX". β±οΈβ¨
π¦ SYNOPSIS π¦
texprof [options] [&format] [file|\commands]
so basically you hand it options, maybe a format, maybe a file, maybe a pile of commands. Slay. π
π DESCRIPTION π
Run the TeX profiler on file, which usually creates file.dvi and file.tprof. If your file argument has no extension? .tex gets appended to it, no questions asked, that's just the vibe. π«Ά
Instead of a file name, you can also hand it a list of TeX commands β and heads up, the first one has to start with a backslash (\), no cap. π₯
And if you pass a &format argument, the TeX profiler uses a different set of precompiled commands, the ones living inside format.fmt. ngl though, it's usually better to use the -fmt format option instead. Just saying. π
The TeX profiler is a version of TeX that measures the time TeX needs to execute individual input lines or macros. It writes all that collected data into a file with extension .tprof. Then a separate program, texprofile (go read texprofile(1)), is what actually displays the content of a .tprof file in a readable form. Two icons, one job. π
The typical use of the TeX profiler is with pre generated formats. So:
texprofuses the equivalent of the plain TeX format πlatexprofuses the equivalent of the LaTeX format π¦
And if you want to investigate the timing of macros targeted to pdftex or pdflatex, you can use pdftexprof or pdflatexprof. iconic honestly π
The TeX profiler's handling of its command-line arguments is similar to that of the other TeX programs in the web2c implementation. Same family, same energy. π«
β¨ OPTIONS β¨
This version of the TeX profiler understands the following command line options. Every single one, bestie, we're not skipping a single flag. π
-cnf-linestring β Parse string as atexmf.cnfconfiguration line. See the Kpathsea manual. π-etexβ Enable the e-TeX extensions. Careful though: this option is only effective in combination with-ini. Seeetex(1). β‘-file-line-errorβ Print error messages in the formfile:line:error, which is similar to the way many compilers format them. Very "we've all been there" of it. π-no-file-line-errorβ Disable printing error messages in thefile:line:errorstyle. The off switch. π«-fmtformat β Use format as the name of the format to be used, instead of the name by which the TeX profiler was called or a%&line. π-helpβ Print help message and exit. π«Ά-iniβ Start in INI mode, which is used to dump formats. INI mode can be used for typesetting, but no format is preloaded, and basic initializations like setting catcodes may be required. You've been warned. π-interactionmode β Sets the interaction mode. The mode can be eitherbatchmode,nonstopmode,scrollmode, anderrorstopmode. The meaning of these modes is the same as that of the corresponding\commands. ποΈ-jobnamename β Use name for the job name, instead of deriving it from the name of the input file. π-kpathsea-debugbitmask β Sets path searching debugging flags according to the bitmask. See the Kpathsea manual for details. π-ltxβ Enable the LaTeX extensions. Again: this option is only effective in combination with-ini. Seelatex(1). π¦-mktexfmt β Enablemktexfmt, where fmt must be eithertex,tfm,fmt, orpk. β-no-mktexfmt β Disablemktexfmt, where fmt must be eithertex,tfm,fmt, orpk. Same four, opposite energy. β-output-directorydirectory β Write output files in directory instead of the current directory. Look up input files in directory first, then along the normal search path. π-parse-first-lineβ If the first line of the main input file begins with%&, parse it to look for a dump name. π΅οΈ-no-parse-first-lineβ Disable parsing of the first line of the main input file. π-pdfβ Enable the simulation of commonpdftexprimitives. This option requires the-inioption and implies the-ltxoption. Seepdftex(1). π-profβ Enable profiling as soon as TeX enters the main loop. If tis option it not used, profiling needs to switched on using the\profileonprimitive. Profiling can be switched of with the\profileoffprimitive. β±οΈβ¨-prognamename β Pretend to be program name. This affects both the format used and the search paths. method acting fr fr π-versionβ Print version information and exit. π«
π ENVIRONMENT π
See the Kpathsea library documentation (e.g., the Path specifications node) for precise details of how the environment variables are used. And the kpsewhich utility can be used to query the values of the variables. iykyk π
TEXMFOUTPUTβ Normally, TeX puts its output files in the current directory. If any output file cannot be opened there, it tries to open it in the directory specified in the environment variableTEXMFOUTPUT. There is no default value for that variable. For example, if you saytexprof paperand the current directory is not writable andTEXMFOUTPUThas the value/tmp, TeX attempts to create/tmp/paper.log,/tmp/paper.dvi, and/tmp/paper.tprof.TEXMFOUTPUTis also checked for input files, as TeX often generates files that need to be subsequently read; for input, no suffixes (such as ``.tex'') are added by default, the input name is simply checked as given. πTEXINPUTSβ Search path for\inputand\openinfiles. This normally starts with.''</cyan>, so that user files are found before system files. An empty path component will be replaced with the paths defined in the <cyan>`texmf.cnf`</cyan> file. For example, set `TEXINPUTS` to <cyan>`".:/home/user/tex:"`</cyan> to prepend the current directory and <cyan>/home/user/tex'' to the standard search path. π£οΈTEXFORMATSβ Search path for format files. π¦TFMFONTSβ Search path for font metric (.tfm) files. π€SOURCE_DATE_EPOCHβ If set, its value, taken to be in epoch-seconds, will be used for the creation date and as the reference moment for the time related primitives of LaTeX. This is useful for making reproducible builds. π°οΈFORCE_SOURCE_DATEβ If set to the value"1", the time-related TeX primitives (\year,\month,\day,\time) are also initialized from the value ofSOURCE_DATE_EPOCH. This is not recommended if there is any viable alternative. π¨
Many, many more environment variables may be consulted related to path searching. See the Kpathsea manual. π
π FILES π
The location of the files mentioned below varies from system to system. Use the kpsewhich utility to find their locations. πΊοΈ
*.tfmβ Metric files for TeX's fonts. π€*.fmtβ Predigested TeX format files. π₯£*.pk*.pfbβ Font files used by TeX. ποΈ
β NOTES β
This manual page is not meant to be exhaustive. The complete documentation for the TeX profiler can be found in texprof.pdf. Further information can be found in the manual of the Kpathsea library. π
π BUGS π
This version of the TeX profiler does not implement all of the primitives that pdftex provides, and further, it will not produce the same side effects. Bestie, don't expect a perfect clone. It's giving "inspired by", not "identical twin". π
π₯ AVAILABILITY π₯
The TeX profiler should compile on a large variety of machine architectures and operating systems. The function to obtain timing information id POSIX specific. π₯οΈ
The sources of the TeX profiler are hosted at https://github.com/ruckertm/HINT. Go star it, bestie. β
πΈ SEE ALSO πΈ
texprofiler(1), tex(1), latex(1), pdftex(1), pdflatex(1),and kpsewhich(1). π«Ά
π AUTHORS π
The primary author of the TeX profiler is Martin Ruckert, with eTeX extensions by Peter Breitenlohner, LaTeX extensions by Thierry Laronde, and the kpathsearch library by Karl Berry. Legends, all of them. π
TeX was designed by Donald E. Knuth, who implemented it using his Web system for Pascal programs. main character energy, honestly π
Many, many more contributed to the typesetting system now known as TeX; far too many to name all of them here. π«Άπ
and that's the whole page bestie!! β¨ this was Version 1.0, dated 2 September 2024, straight from the texprof(1) files. slay, go profile something, mwah π
ππ
π¦ where this page comes from
- alpine 3.24: texlive-doc 2026.0-r0 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- arch rolling: texlive-doc 2026.1-1 Β· GPL
- debian trixie: texlive-formats-extra 2024.20250309-2
- fedora 44: texlive-hitex 12:svn77830-105.fc44 Β· MIT
- fedora 44: texlive-hitex 12:svn77830-111.fc44 Β· MIT
- opensuse-leap 16.0: texlive-hitex-doc 2025.221.svn74030-160000.3.1 Β· LPPL-1.0
- ubuntu questing: texlive-formats-extra 2024.20250309-2
- ubuntu resolute: texlive-formats-extra 2025.20260124-1
- ubuntu stonking: texlive-formats-extra 2026.20260711-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms