-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include timings in trace messages when profiler
is true
#1995
Conversation
!bench |
src/Lean/Util/Trace.lean
Outdated
(collapsed := true) : m α := do | ||
if !(← isTracingEnabledFor cls) then | ||
k | ||
else | ||
let ref ← getRef | ||
let oldTraces ← getResetTraces | ||
let res ← observing k | ||
addTraceNode oldTraces cls ref (← msg res) collapsed | ||
let (res, secs) ← withSeconds <| observing k |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
withSeconds
is being executed even when profiler
is set to false. Have you checked the impact on performance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you tried !bench!
last week, but it seems it did not work.
!bench |
1 similar comment
!bench |
Here are the benchmark results for commit e089d1f. Benchmark Metric Change
========================================
- stdlib wall-clock 1% (33.3 σ) |
!bench |
Here are the benchmark results for commit 725117e. Benchmark Metric Change
========================================
- rbmap_1 task-clock 5% (15.6 σ)
- rbmap_1 wall-clock 5% (15.4 σ) |
Rudimentary implementation. Would be interesting to have an "expand hot path" context menu item.