Zulip Chat Archive
Stream: general
Topic: Profiling Lean code execution
Samuel Chassot (Aug 06 2025 at 14:41):
Hi everyone,
I would like to profile the execution of some lean code. I would like to get a profile of executing the code at runtime, not the proofs/tactics. I could not find anything for the current lean version, apart from profiling the generated C executable with usual profilers.
Is there a canonical lean profiler? Or should I profile the executable with usual techniques?
Thanks a lot :)
Sebastian Ullrich (Aug 06 2025 at 14:46):
The usual techniques work quite well, I use samply a lot on Lean code
Samuel Chassot (Aug 06 2025 at 17:06):
Sebastian Ullrich said:
The usual techniques work quite well, I use samply a lot on Lean code
Perfect, thanks! I'll try that :)
Last updated: Dec 20 2025 at 21:32 UTC