Skip to content

[Feature]: Record & Replay Mode (atop-style) #194

Description

@Terry-Qin

Is your feature request related to a problem?

I wish I could capture witr's process analysis over time and review it later. Currently witr only works in real-time, so if an interesting process appears and disappears (e.g. a short-lived cron job, a crashing service), there's no way to go back and see why it was running.

Describe the solution you'd like

A record/replay mode similar to atop:

  • witr record -i <interval> -o <file> — periodically snapshot process information to a file
  • witr replay -f <file> — restore and browse the recorded snapshots, ideally with the same query flags as live mode (--port, --pid, name, etc.)

The replay mode could support jumping to a specific timestamp and navigating forward/backward through snapshots interactively (TUI) or querying non-interactively for scripting.

Additional context

This is particularly useful for edge devices and servers where you can't always be watching in real time — you want to collect recordings continuously and analyze them after an incident. atop -w / atop -r is the direct inspiration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions