<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-rng/tools/perf/python/ttimechart.py, branch master</title>
<subtitle>Development tree for the kernel CSPRNG</subtitle>
<id>https://git.zx2c4.com/linux-rng/atom/tools/perf/python/ttimechart.py?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-rng/atom/tools/perf/python/ttimechart.py?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-rng/'/>
<updated>2026-10-19T12:24:59Z</updated>
<entry>
<title>perf timechart: Fix task row type narrowing in goto_task()</title>
<updated>2026-10-19T12:24:59Z</updated>
<author>
<name>James Clark</name>
<email>james.clark@linaro.org</email>
</author>
<published>2026-10-06T13:03:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-rng/commit/?id=5927da00783dc8e5a20e059ba2762cdcff1fd3b6'/>
<id>urn:sha1:5927da00783dc8e5a20e059ba2762cdcff1fd3b6</id>
<content type='text'>
Mypy cannot narrow Row to TaskRow or IoRow when the class passed to
isinstance() comes from a loop variable, causing the perf build to fail
with:

  python/ttimechart.py:1686: error: "Row" has no attribute "task" [attr-defined]

Check against TaskRow and IoRow explicitly so mypy can verify access to
the task attribute. The tasks and I/O views contain TaskRow and IoRow
instances respectively, so task navigation behaves as before.

Fixes: e7a72d6919804e5e ("perf timechart: Add an interactive --tui mode")
Reviewed-by: Ian Rogers &lt;irogers@google.com&gt;
Assisted-by: Codex:GPT-6.1-Sol
Signed-off-by: James Clark &lt;james.clark@linaro.org&gt;
Cc: Alice Rogers &lt;alice.mei.rogers@gmail.com&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
</content>
</entry>
<entry>
<title>perf timechart: Add an interactive --tui mode</title>
<updated>2026-10-03T09:41:36Z</updated>
<author>
<name>Alice Rogers</name>
<email>alice.mei.rogers@gmail.com</email>
</author>
<published>2026-10-02T18:26:19Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-rng/commit/?id=e7a72d6919804e5e5a10e13d71e259acbc7510bc'/>
<id>urn:sha1:e7a72d6919804e5e5a10e13d71e259acbc7510bc</id>
<content type='text'>
Add ttimechart.py, a textual based interactive timechart, and a --tui
option to perf timechart that launches it through perf script. Rather
than writing an SVG file, per-CPU (busy, frequency and idle state),
per-task (running, runnable and blocked) and I/O timelines are shown in
the terminal along with a summary table. The timelines can be zoomed,
panned and the state of the selected row at the cursor is described,
including the task that woke it. The -i, -P, -T and -p options are
passed to the script.

The data is loaded in a background thread and the timelines are shown
and updated as it loads. A --dump option prints a text summary without
the UI.

Committer testing:

Fist record a short session with:

  root@x2:/home/acme/git/perf-tools-next# perf timechart record
  ^C[ perf record: Woken up 9 times to write data ]
  [ perf record: Captured and wrote 4.489 MB perf.data (29719 samples) ]
  root@x2:/home/acme/git/perf-tools-next#

Then try the TUI with:

  root@x2:/home/acme/git/perf-tools-next# tools/perf/python/ttimechart.py

or:

  root@x2:/home/acme/git/perf-tools-next# perf timechart --tui

Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Alice Rogers &lt;alice.mei.rogers@gmail.com&gt;
Co-developed-by: Ian Rogers &lt;irogers@google.com&gt;
Signed-off-by: Ian Rogers &lt;irogers@google.com&gt;
Tested-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
</content>
</entry>
</feed>
