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

Convenience version of macro to time a whole function #12

Closed
KristofferC opened this issue May 16, 2023 · 0 comments · Fixed by #13
Closed

Convenience version of macro to time a whole function #12

KristofferC opened this issue May 16, 2023 · 0 comments · Fixed by #13

Comments

@KristofferC
Copy link
Collaborator

TimerOutputs.jl has the following syntax available

@timeit "zone name" f(x) = x
@timeit f(x) = x # implicitly named section `f`

These seem helpful for this package as well. One issue we have had in TimerOutputs is that these macro types mess up the line info a bit: KristofferC/TimerOutputs.jl#77 so we should be careful not to do that. Base has some features like remove_linenums! that might be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant