beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 138 forks source link

Add "timing probes" to ack source #322

Closed hoelzro closed 4 years ago

hoelzro commented 11 years ago

When chasing down performance problems in ack, we're often flying blind. Devel::NYTProf is great, but it almost offers too much data. It would be nice if we could do something like this:


# PROBE: begin resource loop
while ( my $resource = $resources->next ) {
    ...
}
# PROBE: end resource loop

and provide a custom option to insert time measurement instructions.

The generated code should be inserted by squash, and activated in ack-standalone by a --timings option. We also need to plan for the following:

hoelzro commented 11 years ago

See also #235.