All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Semgrep Open-Sources Pyro Caml: First Continuous Profiler for OCaml Production Workloads

By

Isaac Evans

10d ago· 18 min readen

Summary

Semgrep has open-sourced Pyro Caml 1.0.0, the first continuous profiler for OCaml. Built to address the lack of observability tools in the OCaml ecosystem, Pyro Caml uses Memprof, OCaml Runtime Events, and Pyroscope to profile production workloads running under gVisor with under 5% overhead. It enables continuous profiling of OCaml applications in production environments, filling a critical gap for running industrial OCaml software reliably and performantly at scale.

Key quotes

· 3 pulled
The core SAST engine of Semgrep is written in OCaml.
An important consequence of using a language with a (relatively) small ecosystem like OCaml is that there aren't a lot of libraries for things like observability, which are critical for running industrial software like Semgrep on hundreds of thousands of code repositories.
We've made heavy use of existing libraries like the OCaml OpenTelemetry library.
Snippet from the RSS feed
Semgrep open-sources Pyro Caml 1.0.0, the first continuous profiler for OCaml. Learn how it uses Memprof, OCaml Runtime Events, and Pyroscope to profile production workloads running under gVisor with under 5% overhead.

You might also wanna read