Skip to content

Commit 8cdb3e8

Browse files
committed
gh-162388: Use animated SVGs for the Tachyon live screenshots
1 parent 1822ff5 commit 8cdb3e8

5 files changed

Lines changed: 789 additions & 2 deletions

File tree

‎Doc/library/profiling.sampling.rst‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,11 +1321,14 @@ data, similar to the ``top`` command for system processes::
13211321

13221322
.. only:: not latex
13231323

1324-
.. figure:: tachyon-live-mode-2.gif
1324+
.. figure:: tachyon-live-mode-2.svg
13251325
:alt: Tachyon live mode showing all threads
13261326
:align: center
13271327
:width: 100%
13281328

1329+
.. This screenshot has been rendered with this one-liner CLI:
1330+
uvx 'click-extra==10.3.1' screenshot --record --columns 120 --rows 47 --start 6 --end 10 --hold 0 --blank 0 --preset plain --prompt '' --watermark '' --margin 0 --padding 0 --shadow none --border none --output tachyon-live-mode-2.svg -- python3.15 -m profiling.sampling run --live --all-threads --sampling-rate 10khz -m test test_gc test_threading test_list test_dict
1331+
13291332
Live mode displays real-time profiling statistics, showing combined
13301333
data from multiple threads in a multi-threaded application.
13311334

@@ -1346,11 +1349,14 @@ frequently, including specialized variants and their base opcodes.
13461349

13471350
.. only:: not latex
13481351

1349-
.. figure:: tachyon-live-mode-1.gif
1352+
.. figure:: tachyon-live-mode-1.svg
13501353
:alt: Tachyon live mode with opcode panel
13511354
:align: center
13521355
:width: 100%
13531356

1357+
.. This screenshot has been rendered with this one-liner CLI:
1358+
uvx 'click-extra==10.3.1' screenshot --record --columns 120 --rows 47 --start 6 --end 10 --hold 0 --blank 0 --preset plain --prompt '' --watermark '' --margin 0 --padding 0 --shadow none --border none --output tachyon-live-mode-1.svg -- python3.15 -m profiling.sampling run --live --all-threads --sampling-rate 10khz --opcodes -m test test_gc test_threading test_list test_dict
1359+
13541360
Live mode with ``--opcodes`` enabled shows an opcode panel with a bytecode
13551361
instruction breakdown for the selected function.
13561362

-803 KB
Binary file not shown.

0 commit comments

Comments
 (0)