LTTNG-SCHEDSTATS(1)
π NAME π
lttng-schedstats β bestie, it's the LTTng tool that analyses Scheduler statistics. That's it. That's the whole job. And it eats. π
Oh also? This is the page from the User Commands manual, section 1. Now you know. π«Ά
β¨ DESCRIPTION β¨
okay so first things first, here's how you actually call this thing. look at her go:
usage: lttng-schedstats [-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] [--procname
PROCNAME] [--tid TID] [--freq] [--freq-resolution
FREQ_RESOLUTION] [--freq-uniform] [--freq-series] [--limit LIMIT]
[--top] [--log] [--stats] [--total] [--per-tid] [--per-prio]
<path/to/trace>
and the short version of what it does? The sched command. π iconic, truly.
π POSITIONAL ARGUMENTS π
<path/to/trace>β the trace path, babes. point her at your trace and let her cook. π
π¦ OPTIONAL ARGUMENTS π¦
-h,--helpβ show this help message and exit. the classic. when in doubt, ask for help bestie, no shame. π-r REFRESH,--refresh REFRESHβ refresh period, and you can tack on an optional units suffix (default units:s). so like, seconds unless you say otherwise. β±οΈ--gmtβ manipulate timestamps based on GMT instead of local time. timezone queen behavior. π--skip-validationβ skip the trace validation. living dangerously, love that for you. β οΈ--begin BEGINβ start time, formatted likehh:mm:ss[.nnnnnnnnn]. π--end ENDβ end time, same deal:hh:mm:ss[.nnnnnnnnn]. π--period PERIODβ period definition. π--period-captures PERIOD_CAPTURESβ period captures definition. π--period-begin PERIOD_BEGINβ the analysis period start marker event name. π©--period-end PERIOD_ENDβ the analysis period end marker event name β and heads up, this one requires--period-begin. they're a package deal fr fr. π©--period-begin-key PERIOD_BEGIN_KEYβ optional, a list of event field names used to match period markers (default:cpu_id). π--period-end-key PERIOD_END_KEYβ optional, a list of event field names used to match period marker. if none is specified, it uses the same--period-begin-key. π--period-key-value PERIOD_KEY_VALUEβ optional, define a fixed key value that a period must correspond to in order to be considered. π―--cpu CPUβ filter the results only for this list of CPU IDs. π₯οΈ--timerange TIMERANGEβ time range, written as[begin,end]. β--progress-use-sizeβ use trace size to approximate progress. π--no-intersectionβ disable stream intersection mode. π«-V,--versionβ show program's version number and exit. π--debugβ enable debug mode (or set theLTTNG_ANALYSES_DEBUGenvironment variable, whichever vibe you prefer). π--no-colorβ disable colored output. (sad, honestly, but valid.) π¨--no-progressβ don't display the progress bar. π«--min MINβ filter out durations shorter than min usec. π--max MAXβ filter out durations longer than max usec. π--procname PROCNAMEβ filter the results only for this list of process names. π·οΈ--tid TIDβ filter the results only for this list of TIDs. π--freqβ output the frequency distribution of sched switch latencies. π--freq-resolution FREQ_RESOLUTIONβ frequency distribution resolution (default20). π--freq-uniformβ use a uniform resolution across distributions. π--freq-seriesβ consolidate the frequency distribution histogram as a single one. π§¬--limit LIMITβ limit to top X (default =10). βοΈ--topβ output the top sched switch latencies. π--logβ output the sched switches in chronological order. π--statsβ output sched switch statistics. π--totalβ group all results (applies tostatsandfreq). π§Ί--per-tidβ group results per-TID (applies tostatsandfreq) β and yes, this is the default. π--per-prioβ group results per-prio (applies tostatsandfreq). ποΈ
bestie reminder:--period-endwill not work without--period-begin, and--period-end-keyfalls back to--period-begin-keyif you don't give it one. read the fine print, it's giving considerate. π
and that's the whole page, you ate that. now go stare at some sched switches and slay. π§β¨
LTTng Analyses v0.6.0 β dating all the way back to January 2017, and still the moment. mwah. π π
π¦ 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