LTTNG-PERIODLOG(1)
π lttng-periodlog β the manual page, but make it a group chat π
okay so bestie, welcome to lttng-periodlog, straight out of the LTTng Analyses manual (section 1, user commands, obviously). this little icon analyses your period log and it is lowkey doing the most for you. let's get into it π«Ά
β¨ NAME β¨
lttng-periodlog β LTTng analyses period log
like. the name says it all. it analyses the period log. periodt. π
πΈ DESCRIPTION πΈ
here's the whole vibe, exactly as it comes:
usage: lttng-periodlog [-h] [-r REFRESH] [--gmt] [--skip-validation]
[--begin BEGIN] [--end END] [--period PERIOD]
[--period-captures PERIOD_CAPTURES] [--period-begin PERIOD_BEGIN]
[--period-end PERIOD_END] [--period-begin-key PERIOD_BEGIN_KEY]
[--period-end-key PERIOD_END_KEY] [--period-key-value
PERIOD_KEY_VALUE] [--cpu CPU] [--timerange TIMERANGE]
[--progress-use-size] [--no-intersection] [-V] [--debug]
[--no-color] [--no-progress] [--min MIN] [--max MAX] [--freq]
[--freq-resolution FREQ_RESOLUTION] [--freq-uniform]
[--freq-series] [--limit LIMIT] [--top] [--log] [--stats]
[--min-duration MIN_DURATION] [--max-duration MAX_DURATION]
[--aggregate-by AGGREGATE_BY] [--select SELECT] [--group-by
GROUP_BY] [--order-by ORDER_BY] <path/to/trace>
The periods command.
that's it. that's the description. no notes. π
π¦ positional arguments π¦
<path/to/trace>β trace path. literally just hand it the path to your trace and let it cook. β¨
π optional arguments π
bestie there are SO many options, buckle up, we're going through every single one:
-h,--helpβ show this help message and exit. the classic. the moment you're lost, you ask, it answers. π-r REFRESH,--refresh REFRESHβ Refresh period, with optional units suffix (default units:s). so if you don't say a unit, it's seconds, no cap.--gmtβ Manipulate timestamps based on GMT instead of local time. your timezone doesn't get a say here. π--skip-validationβ Skip the trace validation. living dangerously, we love that for you, but you're on your own if it's cursed. π--begin BEGINβ start time:hh:mm:ss[.nnnnnnnnn]. the where-does-it-start energy. β--end ENDβ end time:hh:mm:ss[.nnnnnnnnn]. the where-does-it-stop energy. β--period PERIODβ Period definition. you define the period. it's giving main character. π--period-captures PERIOD_CAPTURESβ Period captures definition. now define the captures too. π--period-begin PERIOD_BEGINβ Analysis period start marker event name. the lil flag that says "the period starts HERE". πΈ--period-end PERIOD_ENDβ Analysis period end marker event name (requires--period-begin). you cannot end a period you never began, bestie. it's a package deal. π--period-begin-key PERIOD_BEGIN_KEYβ Optional, list of event field names used to match period markers (default:cpu_id). if you don't specify, it just assumescpu_id. β¨--period-end-key PERIOD_END_KEYβ Optional, list of event field names used to match period marker. If none specified, use the same--period-begin-key. so it'll just copy your beginning energy. matching sets, adorable. π--period-key-value PERIOD_KEY_VALUEβ Optional, define a fixed key value to which a period must correspond to be considered. like a little bouncer at the door of your analysis. πͺ--cpu CPUβ Filter the results only for this list of CPU IDs. pick your faves. π₯--timerange TIMERANGEβ time range:[begin,end]. brackets included, we're being precise. π―--progress-use-sizeβ use trace size to approximate progress. because vibes alone aren't a measurement. π--no-intersectionβ disable stream intersection mode. turning it OFF, on purpose, as a choice. π-V,--versionβ show program's version number and exit. the "who even am i" button. π--debugβ Enable debug mode (or setLTTNG_ANALYSES_DEBUGenvironment variable). env var girlies, this one's for you. π--no-colorβ Disable colored output. for when you want your terminal to be sad and beige. π--no-progressβ Don't display the progress bar. some of us can't handle the suspense. π--min MINβ Filter out durations shorter than min usec. bye bye tiny durations. π--max MAXβ Filter out durations longer than max usec. bye bye huge durations. π--freqβ Output statistics about periods durations. the numbers, the data, the tea. π--freq-resolution FREQ_RESOLUTIONβ Frequency distribution resolution (default20). twenty is the default, don't come for me. β--freq-uniformβ Use a uniform resolution across distributions. consistent. symmetrical. iconic. β¨--freq-seriesβ Consolidate frequency distribution histogram as a single one. all the little histograms holding hands and becoming one. π«Ά--limit LIMITβ Limit to top X (default =10). only the top ten get to shine. π--topβ Output the top sched switch durations. ranking the sched switches, leaderboard style. π₯--logβ Output the sched switches in chronological order. one after another, in order, like a story. π--statsβ Output sched switch statistics. the stats. the whole stats. π--min-duration MIN_DURATIONβ Filter out, periods shorter that duration (usec). [sic] β yes that's the original wording, I'm not touching it, I'm just a girl. π--max-duration MAX_DURATIONβ Filter out, periods longer than duration (usec). the long ones get evicted. πͺ--aggregate-by AGGREGATE_BYβFIXME. yeah bestie the docs literally just say FIXME, I cannot make this up, I'm reporting what I see. π--select SELECTβFIXME. same situation. FIXME. we're all FIXME here. π--group-by GROUP_BYβ Present the results grouped by a list of fields(period.captured_field[,period.captured_field2]). cute lil grouping, comma-separated, go wild. π--order-by ORDER_BYβhierarchy,time. two options, pick your order, that's the whole menu. β
π reminder bestie:--period-endwill NOT work without--period-begin. the code is strict about this one. also--aggregate-byand--selectare documented asFIXME, so don't @ me, @ the source.
and that's the whole page, no skips, every flag accounted for. LTTng Analyses v0.6.0, dated January 2017 β shoutout to the version and the date, they were doing their thing back then and they're still doing it now. go analyse some periods, you've got this. bye bestie πβ¨π
π¦ where this page comes from
- debian bookworm: python3-lttnganalyses 0.6.1-3 Β· MIT
- ubuntu jammy: python3-lttnganalyses 0.6.1-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms