AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
CPU profile analysis prompt
You are reviewing a XERJ CPU pprof artifact from a controlled experiment.
Inputs:
- Read
manifest.jsoncompletely. - Inspect
cpu.pbwithpprof -top,-tree, and focused-listviews. - Read the exact source at the Git revision in the manifest.
- Read the benchmark's correctness and throughput output.
Report:
- Confirm artifact hashes, capture duration/frequency, binary hash, declared revision/build, command, host, and whether the process was terminated normally. Treat source/build binding as
UNVERIFIEDunless independently attested. - List the top 15 flat and cumulative stacks with both samples and percentages.
- Group costs into PDF extraction, tokenization/embedding, HTTP/JSON, indexing, flush/merge, allocator/synchronization, storage I/O, and unknown.
- Trace each major stack to source file and function. Clearly label inference.
- Identify parallelism bottlenecks, lock/futex waits, repeated parsing/copying, and single-threaded phases.
- Recommend the three smallest experiments that can falsify the suspected bottlenecks.
- Do not claim elapsed-time or throughput causality from sample percentages alone.
End with CONFIRMED, LIKELY, and UNKNOWN sections.
If correctness, workload results, or comparable telemetry are not attached, label any performance conclusion INCONCLUSIVE; a CPU profile alone identifies sampled hot stacks, not a validated optimization win.