Skip to content

docs(skills): analyze-perf-profiling — profile the analysis pipeline, don't guess - #474

Closed
Disentinel wants to merge 1 commit into
mainfrom
docs/perf-profiling-skill
Closed

docs(skills): analyze-perf-profiling — profile the analysis pipeline, don't guess#474
Disentinel wants to merge 1 commit into
mainfrom
docs/perf-profiling-skill

Conversation

@Disentinel

Copy link
Copy Markdown
Owner

A reusable skill for any instance investigating grafema analyze perf/scale. Distills the self-analyze hardening campaign:

  • The profiler is automatic (.grafema/analysis-profile.jsonl every run) — no special mode; read via scripts/profile-analyze.mjs.
  • Critical-path one-liner from the JSONL (route + jams). Real run: rust_resolve 52s/38%, analysis 37s, haskell 23s…
  • The derive/enricher blind spot (not in the JSONL — grep the log) — exactly where the scale bugs live.
  • The known artificial limits (max_intermediate_results 100k, MAX_MATERIALIZED_FACTS 10M, RPC 60s, pool 120s/file) + env overrides — so they're not rediscovered from crashes.
  • Host/RAM (grafema-dev 32GB, not laptop/7GB VM → OOM≠crash) + toolchain-skip behavior.
  • The profile-subgraph vision (PHASE/STAGE/METRIC + PRECEDES → critical path as a Datalog query + CI regression gate).

Distribution: lives in .claude/skills/ so every grafema-repo instance auto-loads it once merged to main.

🤖 Generated with Claude Code

…by route + bottlenecks

Captures the method (measure critical path first, don't guess), the auto-emitted JSONL profiler +
critical-path one-liner, the derive/enricher blind spot, the KNOWN artificial limits (so instances stop
rediscovering 100k/10M/60s/120s caps from crashes) + their env overrides, host/RAM requirements, and the
profile-subgraph vision. Distilled from the June-2026 self-analyze hardening campaign.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Disentinel

Copy link
Copy Markdown
Owner Author

Superseded by the consolidated PR #475 (feat/self-analyze-hardening) — all 6 branches merged clean into one. Commits preserved there.

@Disentinel Disentinel closed this Jun 19, 2026
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