Skip to content

feat(ui): optional performance log panel - #64

Merged
blocksmith314 merged 1 commit into
mainfrom
feature/perf-log
Nov 15, 2026
Merged

blocksmith314 merged 1 commit into
mainfrom
feature/perf-log

Conversation

@blocksmith314

Copy link
Copy Markdown
Owner

Summary

Fixes #17: adds an opt-in in-app performance log.

  • View -> Performance log, checkable and persisted via QSettings("perfLogVisible").
  • Bottom dock with a read-only monospace QPlainTextEdit (max 2000 lines) and Clear / Copy buttons.
  • Hidden by default; all instrumentation is behind one boolean, so nothing is timed or formatted while it is off.

Logged interactions

  • open: probe, demux, analyze, total
  • seek/step: frame, total, seek, decode, display
  • NAL selection: row, analyze, render

Example:

22:30:00.123 open   sample.mp4  probe=12ms demux=180ms analyze=420ms total=612ms
22:30:01.456 seek   sample.mp4  frame=249 total=346ms seek=300 decode=20 display=12
22:30:02.789 nal    sample.mp4  row=153 analyze=0.8ms render=1.2ms

Not included

  • playback frame-interval / dropped-frame statistics
  • audio ring-buffer underruns
  • queued logging from worker threads (all current instrumentation is on the GUI thread)

Verification

  • ctest: 70/70 pass (new PerformanceLogTogglesAndRecords).
  • tidy.sh mainwindow.cpp mainwindow.h test/test_gui.cpp: 0 issues.
  • READMEs document the option.

Fixes #17

Add a View > Performance log toggle (persisted with QSettings) that shows a
bottom dock with a read-only, monospace QPlainTextEdit capped at 2000 lines,
plus Clear/Copy buttons.

Instrumentation stays behind a single boolean: open file (probe/demux/
analyze/total), seek and step (seek/decode/display), and NAL selection
(analyze/render). Nothing is timed or formatted while the panel is hidden.

Fixes #17
@blocksmith314
blocksmith314 merged commit 9f0ec59 into main Nov 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an optional in-app performance log showing per-interaction response times

1 participant