[PR #1710] [MERGED] [codex] Add Tauri performance monitor #5227

Closed
opened 2026-10-22 04:14:24 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1710
Author: @Xelvanis
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @Xelvanis

Base: refactor ← Head: codex/tauri-performance-monitor


📝 Commits (1)

  • 91cbf04 Add Tauri performance monitor

📊 Changes

5 files changed (+858 additions, -61 deletions)

View changed files

📝 docs/developer/run-build.html (+51 -0)
📝 scripts/run-tauri.mjs (+44 -0)
📝 src-tauri/Cargo.lock (+755 -61)
📝 src-tauri/Cargo.toml (+5 -0)
📝 src-tauri/src/lib.rs (+3 -0)

📄 Description

Linked issue

None.

Why this change

Developers need a native Tauri performance monitor path for finding IPC, Rust command, and WebView handoff bottlenecks while keeping regular user builds free of devtools instrumentation.

What changed

  • Added optional devtools Cargo feature backed by tauri-plugin-devtools.
  • Registered CrabNebula DevTools only when the optional Cargo feature is enabled.
  • Updated pnpm tauri dev wrapper to enable the devtools feature automatically for dev runs, including optimized tauri dev --release profiling.
  • Documented how to use CrabNebula Calls plus WebView Performance panel to triage slow spans.

Refactor impact

Primary owner:

Rust Tauri host and developer tooling.

Impact areas reviewed:

  • Tauri startup/plugin registration.
  • Dev wrapper argument handling.
  • Rust dependency graph with default and devtools feature paths.
  • Developer run/build docs.

Boundary notes:

  • Engine, shared API, feature UI, and remote runtime behavior are unchanged.
  • Devtools instrumentation stays behind an optional Cargo feature; regular builds keep default features empty.
  • No new Tauri commands or HTTP dispatch paths were added.

Pressure points touched:

  • src-tauri/src/lib.rs Tauri builder setup only; command registration list was not changed.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • git diff --check passed.
  • node --check scripts/run-tauri.mjs passed.
  • pnpm check:docs passed.
  • pnpm check:architecture passed.
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passed.
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace --features devtools passed.
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace --release --features devtools passed.
  • cargo deny --manifest-path src-tauri/Cargo.toml check --config deny.toml passed with duplicate-version warnings only.
  • cargo tree --manifest-path src-tauri/Cargo.toml --no-default-features -e features was checked for devtools matches; regular no-default feature graph did not include devtools crates.
  • Manual Tauri app connection to CrabNebula DevTools was not run in this session.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

docs/developer/run-build.html was updated. No changelog file exists in this checkout, and this is developer tooling rather than a user-facing release note.

UI evidence

Not applicable; no visible app UI changed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1710 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/31/2026 **Status:** ✅ Merged **Merged:** 5/31/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `codex/tauri-performance-monitor` --- ### 📝 Commits (1) - [`91cbf04`](https://github.com/Pasta-Devs/Marinara-Engine/commit/91cbf04889950a98546d1d17bb60420cd690821a) Add Tauri performance monitor ### 📊 Changes **5 files changed** (+858 additions, -61 deletions) <details> <summary>View changed files</summary> 📝 `docs/developer/run-build.html` (+51 -0) 📝 `scripts/run-tauri.mjs` (+44 -0) 📝 `src-tauri/Cargo.lock` (+755 -61) 📝 `src-tauri/Cargo.toml` (+5 -0) 📝 `src-tauri/src/lib.rs` (+3 -0) </details> ### 📄 Description ## Linked issue None. ## Why this change Developers need a native Tauri performance monitor path for finding IPC, Rust command, and WebView handoff bottlenecks while keeping regular user builds free of devtools instrumentation. ## What changed - Added optional `devtools` Cargo feature backed by `tauri-plugin-devtools`. - Registered CrabNebula DevTools only when the optional Cargo feature is enabled. - Updated `pnpm tauri dev` wrapper to enable the `devtools` feature automatically for dev runs, including optimized `tauri dev --release` profiling. - Documented how to use CrabNebula Calls plus WebView Performance panel to triage slow spans. ## Refactor impact Primary owner: Rust Tauri host and developer tooling. Impact areas reviewed: - Tauri startup/plugin registration. - Dev wrapper argument handling. - Rust dependency graph with default and `devtools` feature paths. - Developer run/build docs. Boundary notes: - Engine, shared API, feature UI, and remote runtime behavior are unchanged. - Devtools instrumentation stays behind an optional Cargo feature; regular builds keep default features empty. - No new Tauri commands or HTTP dispatch paths were added. Pressure points touched: - `src-tauri/src/lib.rs` Tauri builder setup only; command registration list was not changed. ## Validation - [x] `pnpm check` passes locally - [x] `pnpm typecheck` passes locally - [x] `pnpm build` passes locally - [x] `pnpm check:architecture` passes locally - [x] `pnpm check:docs` passes locally - [x] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - `git diff --check` passed. - `node --check scripts/run-tauri.mjs` passed. - `pnpm check:docs` passed. - `pnpm check:architecture` passed. - `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passed. - `cargo check --manifest-path src-tauri/Cargo.toml --workspace --features devtools` passed. - `cargo check --manifest-path src-tauri/Cargo.toml --workspace --release --features devtools` passed. - `cargo deny --manifest-path src-tauri/Cargo.toml check --config deny.toml` passed with duplicate-version warnings only. - `cargo tree --manifest-path src-tauri/Cargo.toml --no-default-features -e features` was checked for devtools matches; regular no-default feature graph did not include devtools crates. - Manual Tauri app connection to CrabNebula DevTools was not run in this session. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [x] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims `docs/developer/run-build.html` was updated. No changelog file exists in this checkout, and this is developer tooling rather than a user-facing release note. ## UI evidence Not applicable; no visible app UI changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:14:24 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5227
No description provided.