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

Support for timing effects #18

Open
JasonGross opened this issue Aug 14, 2023 · 0 comments
Open

Support for timing effects #18

JasonGross opened this issue Aug 14, 2023 · 0 comments

Comments

@JasonGross
Copy link
Collaborator

I'd like support for some sort of timing primitive, so that I can, e.g.,

Polymorphic Definition time_it {T} (tag : T) {A B} (f : A -> B) (x : A) : B := f x.
Declare Timing Effect time_it.

and have reduction of time_it print something like Finished reduction tag in ...., profiling the reduction of f x.

Probably the easiest way to implement this is with something like push_timer and pop_timer?

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

No branches or pull requests

1 participant