Skip to content

Check the desktop app's performance scripts into tools/app-perf - #2896

Draft
nortonandreev wants to merge 2 commits into
mainfrom
kcap-2739-app-perf-tools
Draft

nortonandreev wants to merge 2 commits into
mainfrom
kcap-2739-app-perf-tools

Conversation

@nortonandreev

Copy link
Copy Markdown
Contributor

Closes #2739 — AI-5629

What & why

The numbers behind #2622 came from scripts that lived only in an audit workspace. These are rebuilt and checked in: a seeder for sessions shaped like real work, cold start, session open, idle CPU and wakeups, a loopback capture of the requests an open makes, and reports for each. Cold start reads the app-lifecycle.jsonl marks from #2732 when the build writes them; KCAP_PERF_FRAMES=0 drops the screenshot loop so it stops taking CPU from the launch it times.

Where to look

pcap_http.py reassembles HTTP/1.1 per connection in arrival order; sequence order breaks when an initial sequence number wraps.

Verification

Tart VM (macOS 26.6.2, 4 vCPU, 4 GB), local server 1.4.1:

Check Result
seed_sessions.py 20 200 1500 184 / 1,804 / 13,505 events
coldstart.sh on main, 7 runs window median 2.6 s, rows 3.25 s, 4.1 CPU s at 10 s
Same on the #2732 build window_shown median 1,845 ms against OCR 1.9–2.1 s
capture_open.sh on main, 13.5k-event open /detail ×2, artefacts ×2, plan-artifacts ×2, 3.8 MB

@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions

Copy link
Copy Markdown

Qodana for .NET

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

Each launch renames its bundle into /Applications, since the app offers to open the installed copy when started anywhere else.
@github-actions

Copy link
Copy Markdown

Qodana for .NET

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

This branch has not been deployed

No deployments
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.

[App perf] Task 12 — Check the measurement scripts into tools/app-perf/

1 participant