Samply provides a stable MCP interface designed specifically for AI agents to interact with CPU profiling data. It addresses the need for structured, agent-friendly summaries of performance profiles, moving beyond raw JSON data provided by `samply`. The tool facilitates working with both live recordings and saved profiles offline, offering comprehensive capabilities for performance analysis, from high-level summaries and thread inspection to detailed function analysis and mapping hot symbols back to source files.
主要功能
01Map hot native symbols back to likely local source files for direct code inspection.
02Inspect specific threads in detail, including representative stack traces.
03Generate compact, agent-friendly summaries of threads, hotspots, and sample distributions.
041 GitHub stars
05Record CPU profiles with the `samply` binary, including presymbolication for offline analysis.
06Break down native functions by namespace prefix to identify performance-critical subsystems.
使用案例
01Automating CPU performance analysis within AI agent workflows.
02Identifying and quantifying performance bottlenecks in native Rust or C++ codebases.
03Offline analysis of existing `profile.json` or `profile.json.gz` files.