Uniprof: Universal CPU Profiling
10 hours ago
- #profiling
- #debugging
- #performance
- Uniprof simplifies CPU profiling for humans and AI agents without requiring code changes or added dependencies.
- Supports profiling applications in various languages (e.g., Python, Ruby) with commands like `npx uniprof python app.py`.
- Automatically detects the platform and selects the appropriate profiler (e.g., py-spy for Python).
- Provides detailed profiling results including top functions by time, samples, and location in the code.
- Offers both CLI usage and integration as an MCP server for AI agents to debug performance bottlenecks.
- Includes built-in flamegraph visualization powered by speedscope for easier analysis.
- Example shown where Claude Code uses uniprof to identify and fix a real performance bottleneck in the Context app.