Skip to content

Support for timing effects #18

Description

@JasonGross

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions