memtrace
CommunityProfile OCaml allocations to identify hotspots.
Authoraresbit
Version1.0.0
Installs0
System Documentation
What problem does it solve?
OCaml developers often struggle to understand where allocations and boxing occur, hindering performance improvements. This Skill provides a structured approach to instrument code with memtrace to reveal allocation hotspots and guide targeted optimizations.
Core Features & Use Cases
- Instrument OCaml executables with memtrace to capture allocation traces.
- Run targeted benchmarks to isolate hotspots, boxing overhead, and function hot paths.
- Identify hotspot locations and validate optimizations with before/after comparisons.
- Visualize traces with memtrace-viewer or hotspot tooling to drive data-informed improvements.
Quick Start
Use Memtrace to instrument your OCaml project: add Memtrace.trace_if_requested () at program startup, build with dune, run with MEMTRACE=trace.ctf, and analyze the resulting trace to locate allocation hotspots.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: memtrace Download link: https://github.com/aresbit/MateBot/archive/main.zip#memtrace Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.