Skip to content

Add a development-only performance monitor - #7

Merged
oxfern merged 1 commit into
ox/devexfrom
ox/add-dev-performance-monitor
Aug 4, 2026
Merged

Add a development-only performance monitor#7
oxfern merged 1 commit into
ox/devexfrom
ox/add-dev-performance-monitor

Conversation

@oxfern

@oxfern oxfern commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a dismissible, floating performance monitor for development builds with system CPU, memory, estimated power impact, Web Vitals, and recent performance measures.

Why

Developers need live resource-pressure feedback in the app shell without adding monitoring code or polling to production builds.

Changes

  • Sample system CPU and memory through a shared desktop/mobile Tauri backend and derive a clearly labeled smoothed power-impact estimate
  • Show the monitor by default in development, stop polling after dismissal, and provide explicit native-shell fallback states
  • Exclude the frontend import and native command registry from release builds, with scoped Tauri permissions and regression coverage

Verification

  • pnpm typecheck
  • pnpm lint
  • pnpm check:tests-wired
  • Focused performance, design-token, polling-discipline, and UI-consistency tests
  • cargo check, cargo test … dev_performance --lib, and cargo check --release
  • pnpm build, production artifact audit, and native Tauri display/dismissal test

Risk + rollout notes

Power impact is intentionally an estimate derived from smoothed CPU pressure because a portable watts API is not available across every supported target.

No migration or production rollout step is required because both the UI and native command are compiled out of release paths.

Signed-off-by: ox <286927284+oxfern@users.noreply.github.com>
@oxfern
oxfern marked this pull request as ready for review August 4, 2026 07:05
@oxfern
oxfern merged commit 7fedb2d into ox/devex Aug 4, 2026
1 check passed
oxfern added a commit that referenced this pull request Aug 4, 2026
Signed-off-by: ox <286927284+oxfern@users.noreply.github.com>
Co-authored-by: ox <286927284+oxfern@users.noreply.github.com>
oxfern added a commit that referenced this pull request Aug 4, 2026
* Track Coven Cave isolation skill

* feat(dev): give local app a distinct identity

Signed-off-by: ox <286927284+oxfern@users.noreply.github.com>

* feat(dev): add native development frame (#5)

* feat(dev): add native development frame

Signed-off-by: oxfern <286927284+oxfern@users.noreply.github.com>

* fix(dev): show frame on all desktop shells

Signed-off-by: oxfern <286927284+oxfern@users.noreply.github.com>

---------

Signed-off-by: oxfern <286927284+oxfern@users.noreply.github.com>
Co-authored-by: oxfern <286927284+oxfern@users.noreply.github.com>

* feat(dev): provision isolated runtime tools (#6)

Signed-off-by: ox <286927284+oxfern@users.noreply.github.com>
Co-authored-by: ox <286927284+oxfern@users.noreply.github.com>

* feat(dev): add cross-platform performance monitor (#7)

Signed-off-by: ox <286927284+oxfern@users.noreply.github.com>
Co-authored-by: ox <286927284+oxfern@users.noreply.github.com>

---------

Signed-off-by: ox <286927284+oxfern@users.noreply.github.com>
Signed-off-by: oxfern <286927284+oxfern@users.noreply.github.com>
Co-authored-by: oxfern <286927284+oxfern@users.noreply.github.com>
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.

1 participant