Zulip Chat Archive
Stream: general
Topic: measure instruction counts locally
Christian Merten (Nov 18 2024 at 18:02):
I use lake env lean -Dtrace.profiler=true -Dtrace.profiler.output=profile.json <filename.lean>
to measure build time. Can I also get from this the number of instructions as in the output by the speed center?
Henrik Böving (Nov 18 2024 at 21:13):
Those are measured using perf
Christian Merten (Nov 18 2024 at 21:16):
How do I run this? lake env perf <filename>.lean
gives could not execute external process 'perf'
Christian Merten (Nov 18 2024 at 21:16):
Aha, perf
refers to a general tool, right?
Henrik Böving (Nov 18 2024 at 21:20):
Yes perf
is a general Linux utility for performance profiling
Christian Merten (Nov 18 2024 at 21:20):
Thanks!
Last updated: May 02 2025 at 03:31 UTC