Products › lamco-dsi-tools › Docs › dsitell reference
dsitell reference
Every dsitell command: Health, findings, timing, the closed loops, compare, matrix, replay, bundle and scrub.
dsitell is the program of lamco-dsi-tools (DSI: Desktop session interfaces) that interprets. It never touches the live system. Every command reads capture files that dsisee or dsido wrote, or standard input when no file is given or the file is -. Standard input has to be a pipe or a file: With no file named at a terminal, the command says so and exits 2. dsitell is the same in every build, and reads a capture taken by any build, whatever features its own was compiled with.
dsitell takes --json. It has no time limit, since it reads files. Its --junit belongs to health and compare. The man pages (dsitell(1) and one per command) and dsitell help <command> hold the full text.
Commands
| Command | What it does |
|---|---|
health [<capture>...] | The health summary of a capture, built only from its records: Eight functions, each with a state and the records the state rests on, one line for the draft remote desktop server interface that decides no state, then the findings. --fail-on-absent and --junit <file> are for automated checks. --animation <capture> holds the findings of a run to the time an animation was presenting. |
findings [<id>] | Lists the catalog of findings, or explains one. Reads no capture. --markdown prints the catalog as the reference document. |
timing [<capture>...] | Every duration the capture's records allow, in one form: Name, count, minimum, median, 95th and 99th percentile, maximum, jitter, the clock, and whether it's measured or estimated. --series <figure> follows one figure over time. |
loop <injection> <witness> | The closed loop: Pairs each step dsido injected with the event dsisee input witness recorded for it, and gives the time between them as distributions. Exit code 1 when a step wasn't seen. |
glass <animation> <capture>, glass <injection> <witness> <capture> | Input to captured frame: Pairs each frame a window committed with a screen marker with the captured buffer that shows it. Exits 1 when a frame that was presented wasn't captured. |
clipboard <set> <watch> | The clipboard's closed loop: Pairs the content dsido clipboard set offered with what dsisee clipboard observe --read read, by length and SHA-256. Exit code 1 when the content didn't come back. |
audio <play> <stream> | The audio loop: Pairs each marker dsido audio play played with the marker dsisee audio stream heard. Exit code 1 when a marker wasn't heard. |
compare <baseline> <candidate> | What differs between two captures. --fail-on <class> makes a regression of that class exit 1, and --junit <file> writes one test case per class. |
matrix <capture>... | Several captures side by side, one column each. Text, --markdown or --json. |
replay [<capture>...] | Reads a capture again with this build's lenses. --out <file> writes the capture with the new reading beside its records. |
bundle <capture> --out <file> | Writes a redacted copy of the capture, with its health summary and findings appended, and prints what kinds of value were replaced and how many. |
scrub <directory> --out <directory> | The publishable form of a set: Every capture of a directory redacted as one set, with a MANIFEST.json of each file's size and SHA-256. |
help [<command>] | Command help. |
health
It reports by function, in this order: Session, compositor and protocols, portal, capture, input, clipboard, audio and outputs. Each function gets one of exactly these states:
| State | Meaning |
|---|---|
working | An observation shows it working. |
present | The pieces are there, and nothing exercised them. |
absent | It was looked for and isn't there. |
broken | An observation shows a failure. |
not examined | No dissector looked, with why: Not available, skipped behind a gate, refused, failed, timed out, or not in the capture. |
assumed | The only basis is the built-in table. The summary says so and gives the table's stated basis, or that it has none. |
No state is given without something in the capture under it. Every statement carries the indexes of the records it rests on, counted from zero in the capture's records list, or names the dissector whose outcome it reports, so you can go from a verdict to the evidence.
Capture and input each have more than one route, and which a desktop has is its design:
| Function | Route | Read from |
|---|---|---|
| Capture | ext-image-copy-capture-v1 | The registry (the manager and the output source manager), and the frames when the capture dissector ran |
| Capture | The ScreenCast portal and PipeWire | The session, streams and buffers when the screen cast dissector ran; otherwise the portal's interfaces, and whether pw-dump could read the graph |
| Capture | wlr-screencopy | The registry (the manager), and the frames when the capture dissector ran |
| Input | libei through the RemoteDesktop portal | The portal's RemoteDesktop interface and its version, and the connection when the libei dissector ran |
| Input | The wlroots virtual keyboard and pointer protocols | The registry, and the steps when dsido wlr inject wrote the capture |
| Input | The kernel's uinput | /dev/uinput and who the capture was taken as, and the steps when dsido kernel inject wrote the capture |
| Input | The InputCapture portal (input toward a program) | The portal's InputCapture interface, and the session, zones, barriers and activations when the input capture dissector ran |
The clipboard has three routes (ext-data-control-v1, wlr-data-control, and the portal's Clipboard interface on a RemoteDesktop session). Audio has two, PipeWire sinks and sources read from the graph, and the playback route is also decided by the records of the instrument's own streams where a capture holds them. The outputs have five routes that read (wl_output with xdg-output, KWin's kde_output_device_v2, wlr-output-management, Mutter's DisplayConfig and KScreen) and a sixth, KWin's kde_output_management_v2, which only changes outputs.
A route that's absent isn't a problem while another is there. A function with routes is broken when a route was exercised and failed, and otherwise takes the state of its best route. It's absent only when every route with a dissector was looked at and none is there. The overall line is the worst state among the functions that were examined. What wasn't examined, and what's assumed, is counted beside it and never folded in.
absent is a claim about the desktop, so it isn't given for what the instrument couldn't ask:
- A capture taken where
WAYLAND_DISPLAYwasn't set, as from a remote shell that didn't export it, shows the compositor and every route through the Wayland display asnot examined, and raisesWL-001. - A session in which nothing has called the portal yet has no owner for
org.freedesktop.portal.Desktop. When D-Bus lists the name as activatable, the portal and every route through it arenot examined, with the reason "not running; D-Bus can start it on demand;--wake-portalhas dsisee do so", and the finding isPORTAL-008, of level info. Only a name that's neither owned nor activatable, or one that still has no owner after dsisee asked D-Bus to start it, makes the portal absent (PORTAL-001). - An input route is
workingonly in a capture adsidoinjector wrote, sincedsiseesends no input. The ScreenCast portal route isworkingwhen a capture holdsbufferrecords, andpresentwhen the session was opened and the stream wasn't read, which is all a build without thepipewirefeature can record.
It can't tell which login session the capture was taken in. It reads one capture at a time, and given several, prints a summary of each. Not in the records: Whether PipeWire was running before pw-dump connected to it.
findings
Each thing worth telling someone is a finding: An identifier that never changes meaning once released, a severity (info, notice or problem), a one-line statement, the records it rests on, and an explanation with what a person can do. A finding doesn't set the exit code of health: The states of the functions do. See Findings for the catalog.
timing
A single length is a line with a count of 1, in the same form as a distribution of thousands. The lines, each present when the capture has the records for it, cover:
- The capture's whole window and the CPU time the instrument's process used, and how long each dissector took.
- Each step of opening the libei connection, with the wait for a person shown apart and marked as such.
- Request-to-ready and the interval between ready events for captured frames, and the interval between presentation times on the compositor's clock.
- For a screen cast through the portal, each step of opening the session with the dialog wait apart, the time from the portal answering
Startto the first buffer, and the interval between buffers, once by arrival on the instrument's clock and once by the producer'sptson its own. - PipeWire driver and follower cycle times, on the clock PipeWire reports.
- The clipboard's reads and writes, and with a set and a watch capture together, the loop's figures.
- An output change on any of the three routes, from each test, apply and restore to the desktop's answer and to the events it caused.
- A portal
Startthat sent a restore token, asstart_with_token, apart from theStartthrough the dialog. A virtual monitor's appearance and removal. - The audio streams, and with a play and a stream capture together, the time from playing to hearing.
- An animation's ticks and commits, what reading each marked buffer cost, and the figures of
dsitell glass.
Each capture route has its own names (ext_image_copy., wlr_screencopy., portal_screencast.) and the three are never pooled. Rates are derived from medians and marked estimated.
Two things are refused, and said. A duration whose two stamps are on different clocks isn't computed: It's listed under "Not computed" with the two clocks. And several captures are pooled into one report only when all of them name the same machine identifier and boot identifier; otherwise the command says why and exits 2. One kind of duration with two clock names is computed, and its line says so: A leg of dsitell glass between the time the compositor says a frame was presented and a stamp of the instrument's, when the compositor named the clock id the capture headers record for the instrument, on one machine and boot.
With --series <figure> the command follows one figure through one capture over time, in place of this report. Its flags (--bucket, --over, --from, --until, --animation, --exclude-locked, --markdown) are described in Long runs and load.
The loops: loop, glass, clipboard and audio
Each of these pairs two or three captures, and each refuses captures that don't name one machine and one boot, with exit code 2. Measuring explains what each loop measures and what it doesn't.
| Command | Captures | What it gives |
|---|---|---|
loop | dsido <route> inject, then dsisee input witness | The time from each step to its event. An event that arrived after the injection capture ended is paired with no step. When the witness window was without the keyboard focus while key steps were sent, as it is behind a permission dialog, the report says so and puts the key steps not seen down to the focus and not to the route. For a touch, it says whether the witness's seat had the touch capability during the injection. |
glass | dsido screen animate, then a capture taken with --read-markers; or dsido <route> inject, dsisee input witness --markers, then the capture | With an animation: The time from a commit to the captured buffer that shows it, and the frames the capture route dropped or showed twice. With an injection and a witness: Each step's path from being requested, to delivered, to committed, to the captured buffer, each figure with its clock named. |
clipboard | dsido clipboard set, then dsisee clipboard observe --read | The time from the selection being asked for to the watcher being told of it, from there to the content having arrived whole, and the round trip. A selection the watcher found already there when it bound (initial) wasn't seen being set, so the two figures that start at the set are left out for it: Start the watcher before the set. |
audio | dsido audio play, then dsisee audio stream | The time from playing to hearing as a distribution over the markers of the run, with its uncertainty, apart from the delay each stream reported for itself. It also says whether both streams were linked to one node. |
compare
dsitell compare before.json after.json
dsitell compare baseline.json candidate.json --fail-on all --junit compare.xml
dsitell compare a.json b.json --fail-on timing --timing-threshold 10 --timing-min-count 20
The first capture is the baseline and the second the candidate. Each is read by itself, with the lenses health and timing use, and the two readings are set side by side: The environment and versions, how each dissector fared, what the Wayland registry and the portal advertise, the portal's capabilities, the state of each function and route, the findings gained and lost, and every timing figure. The text lists what differs and counts what's the same. --json has every row.
Three rules hold the comparison to what the captures show:
- Nothing is called missing on a side that didn't look. When the registry dissector didn't run in one capture, the Wayland globals aren't compared, and the report says which capture didn't look.
- A timing figure is a length measured inside one capture. Figures from two machines or two boots are set side by side, and the report says which they come from. A stamp of one capture is never set against a stamp of the other. No difference is taken when a figure is on different clocks in the two, or is time a person took to answer a dialog.
- A tail isn't claimed from too few values. A difference is the candidate's median less the baseline's. The 95th percentile is compared only when both figures have 20 values or more, and the 99th with 100.
A difference isn't a verdict. Regressions are listed apart, in five classes:
| Class | Counts when |
|---|---|
findings | The candidate raises a finding of severity notice or problem that the baseline doesn't |
health | A function or a route is in a worse state, in the order working, present, absent, broken |
coverage | A function or route the baseline examined isn't examined in the candidate, or a dissector that ran in the baseline didn't |
interfaces | A Wayland global or a portal interface the baseline advertises is absent from the candidate, or advertised at a lower version |
timing | A median that rests on --timing-min-count values or more in both captures (default 5) is longer in the candidate by more than --timing-threshold percent (default 25) |
The timing class is a policy and the report prints its two numbers. Without --fail-on the command exits 0 whatever differs. With it, the exit code is 1 when a class it names has a regression (all names every class). For each capture, compare also says the load it was taken under, from the capture's own records of the machine's state. A capture that recorded none says that and is never called idle.
matrix
dsitell matrix sway.json hyprland.json gnome.json kde.json
dsitell matrix --markdown captures/*.json > matrix.md
One column per capture, headed by the compositor the capture's records name and the first line its version command printed. The rows are each function and its routes with their states, each finding at least one capture raises, and each timing figure at least one capture has, as its median and the number of values under it. A cell with - means the capture has no records for the figure. Every cell is read from its own capture and nothing is computed across columns. Each column carries a clock number: Columns with the same number name one machine and one boot. The figures about the instrument's own run are left out unless --all-timings is given.
replay
A capture holds what the machine said and no interpretation, so a capture an older build took can be read by a newer one. dsitell replay prints which program and version wrote the capture and which reads it, how many records each mechanism has and which mechanisms this build has no lens for, and then the health summary and the timing report as this build works them out. When the file carries a reading an earlier command stored in it (the health member dsisee check and dsitell bundle add), the command lists each state and finding that differs. A stored reading is never used in place of the records.
This build reads capture format v1. A capture in another format version is refused whole by every command, with exit code 2. Sending a capture's action to a desktop again is dsido <route> replay, which is another program because it changes the machine.
bundle and scrub
bundle replaces fifteen kinds of value with placeholders such as <user-3fa9c2d1>, writes the copy with its health summary, and prints what kinds of value were replaced and how many. scrub redacts a set of captures that belong together as one set, so that one real value is one placeholder in every file, and writes a MANIFEST.json. Both take --redact-app-ids. The redaction is a best effort: Read a bundle before sending it. Sharing a capture covers both commands, what they replace and what they keep.
dsitell bundle capture.json --out bundle.json
dsitell scrub captures/ --out publishable/
sha256sum publishable/*.json # the same digests MANIFEST.json holds