Skip to content
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

trace.profiler.threshold is too coarse #6361

Open
3 tasks done
eric-wieser opened this issue Dec 10, 2024 · 0 comments
Open
3 tasks done

trace.profiler.threshold is too coarse #6361

eric-wieser opened this issue Dec 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@eric-wieser
Copy link
Contributor

Prerequisites

Please put an X between the brackets as you perform the following steps:

Description

set_option trace.profiler.threshold is very helpful for filtering profiles, but 1ms of resolution is too coarse; using a value of 1 doesn't capture enough data, and using a value of 0 captures way too much.

Context

@hrmacbeth, @robertylewis and I are trying to profile and speedup linarith; with a threshold of 1 we miss most of the cost paid by thousands of calls to MetaM.mkAppM, while with a threshold of 0 the recorded data is too large and never finishes writing out to the profile file.

Steps to Reproduce

Run

set_option trace.profiler.threshold 0.0001
set_option trace.profiler.threshold 100ns

Expected behavior: One of the above should be legal

Actual behavior: Neither is valid syntax, as lean options cannot hold durations or ofScientific literals

Versions

4.14.0

Additional Information

Impact

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

@eric-wieser eric-wieser added the bug Something isn't working label Dec 10, 2024
@eric-wieser eric-wieser changed the title trace.profiler.threshold is too coarse trace.profiler.threshold is too coarse Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant