PPROFILE3(1)
π PPROFILE3 π
okay bestie, so this is the manual page for the pprofile3 command, from the General Commands Manual section of the manual (section 1, iykyk) π«Ά
β¨ NAME β¨
pprofile β Line-granularity, thread-aware deterministic and statistic pure-python profiler πΈ
like. it profiles ur python. line by line. it's giving main character energy for your slow code π
π SYNOPSIS π
pprofile3 [options] some-python-module [arguments]
that's it, that's the whole vibe. module in, profile out β¨
π¦ DESCRIPTION π¦
This manual page documents briefly the pprofile3 command. π
pprofile is a Line-granularity, thread-aware deterministic and statistic pure-python profiler. no cap.
okay so let's break it down because this thing is lowkey iconic:
- Line granularity β it lets you locate precisely where time is spent in code. not "somewhere in this function", like, that exact line, bestie π
- Thread awareness β profiling automatically propagates to all threads. and that means all threads in statistic mode, or threads spawned by profiled code in deterministic mode. she multi-tasks fr fr π§΅β¨
- Deterministic profiling β gives precise measures, but at a large speed cost (best used on minimal test scenario). so like, careful, she's thorough but she's slow π
- Statistic profiling β gives rough measure, but has an extremely low overhead (suitable for live code profiling). she's fast and unbothered π
and the best part: it does not require marking methods to profile, allowing non-method profiling β module imports, class & function declarations and other module-level code. you literally don't have to touch ur code, she just knows π
also she can produce callgrind output. slay π
π OPTIONS π
-h,--helpβ Show summary of options. the classic. the legend. ur girl will tell you what she does π-m MODULEβ Searchessys.pathfor the named module and runs the corresponding.pyfile as a script. When given, positional arguments becomesys.argv[1:]. so like, she'll go hunt down ur module insys.pathherself π΅οΈβοΈ-o,--out OUTβ Write annotated sources to this file. Defaults tostdout. wanna keep the receipts? put em in a file, otherwise she's yelling into the terminal π-z,--zipfile ZIPFILEβ Name of a zip file to generate from all involved source files. Useful with callgrind output. zip zip hooray ποΈβ¨-t,--threads THREADSβ If non-zero, trace threads spawned by program. Default:1. she's thread-aware by default, periodt π§΅-f,--format callgrind,textβ Format in which output is generated. If not set, auto-detected from filename if provided, falling back to"text". she's smart, she'll figure it out π§ π-v,--verboseβ Enable profiler internal tracing output. Cryptic and verbose. ngl bestie this one is a lot. it's giving "reading the matrix" π use with caution-s,--statistic STATISTICβ Use this period for statistic profiling, or use deterministic profiling when0. so like,0= precise but slow, anything else = rough but fast β‘
π AUTHOR π
pprofile was written by Vincent Pelletier <plr.vincent@gmail.com> π
This manual page was written by Josue Ortega <josue@debian.org> for the Debian project (and may be used by others). π«Ά
β¨ so yeah. go profile something. ur code deserves the glow-up. π¦
pprofile3(1) Β· dated Oct 23, 2016 Β· mwah, bye bestie ππ
π¦ where this page comes from
- debian bookworm: python3-pprofile 2.1.0-1 Β· GPL-2.0-or-later
- debian trixie: python3-pprofile 2.1.0-2 Β· GPL-2.0-or-later
- ubuntu jammy: python3-pprofile 2.1.0-1 Β· GPL-2.0-or-later
- ubuntu noble: python3-pprofile 2.1.0-1 Β· GPL-2.0-or-later
- ubuntu questing: python3-pprofile 2.1.0-2
- ubuntu resolute: python3-pprofile 2.1.0-2.1 Β· GPL-2.0-or-later
- ubuntu stonking: python3-pprofile 2.1.0-2.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms