LearnNewsExamplesServices
Frontmatter
id9385
titleE2E: Expose Performance tracker metrics via Remote Methods
stateClosed
labels
aitestingperformance
assigneestobiu
createdAtMar 7, 2026, 11:05 PM
updatedAtMar 7, 2026, 11:12 PM
githubUrlhttps://github.com/neomjs/neo/issues/9385
authortobiu
commentsCount1
parentIssue9380
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 7, 2026, 11:12 PM

E2E: Expose Performance tracker metrics via Remote Methods

Closed v12.1.0 aitestingperformance
tobiu
tobiu commented on Mar 7, 2026, 11:05 PM

This ticket tracks the exposure of the Neo.util.Performance tracker's internal data to the Main thread.

Goal: Allow E2E test runners (like Playwright, which operates on the Main thread) to read performance metrics that are gathered inside the App worker.

Tasks:

  1. Add a getMetrics() method to Neo.util.Performance to serialize its internal #data Map into a plain JSON object.
  2. Define the remote config on Neo.util.Performance to expose getMetrics and getAverage to the main worker environment.
  3. Verify that Neo.util.Performance.getMetrics() can be called asynchronously from the Main thread console.

This is a sub-task of the Epic to resolve Grid Scroll Thrashing.

tobiu added the ai label on Mar 7, 2026, 11:05 PM
tobiu added the testing label on Mar 7, 2026, 11:05 PM
tobiu added the performance label on Mar 7, 2026, 11:05 PM
tobiu added parent issue #9380 on Mar 7, 2026, 11:05 PM
tobiu referenced in commit fb20b23 - "test: Expose Neo.util.Performance metrics via RemoteMethodAccess (#9385) on Mar 7, 2026, 11:11 PM
tobiu assigned to @tobiu on Mar 7, 2026, 11:11 PM
tobiu
tobiu Mar 7, 2026, 11:11 PM

Input from Gemini 3.1 Pro:

✦ I have committed the remote config fix for Neo.util.Performance and updated the GridThumbDrag.spec.mjs E2E test.

The Playwright benchmark now successfully pulls the dynamic worker latency metrics directly from the App Worker's memory space via the generated window.Neo.util.Performance proxy.

This completely bridges the telemetry gap and provides the hard data needed to prove the Predictive Delta Injection is reacting to real-time system load. I will close this sub-ticket.

tobiu closed this issue on Mar 7, 2026, 11:12 PM