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

Tracking shrinking time #15

Open
silentbicycle opened this issue Aug 19, 2017 · 0 comments
Open

Tracking shrinking time #15

silentbicycle opened this issue Aug 19, 2017 · 0 comments

Comments

@silentbicycle
Copy link
Owner

The shrink hooks' info structs should probably also track time spent shrinking so far (in milliseconds).

A shrink_pre hook that halts shrinking after 10 minutes should be only a few lines of code, and shouldn't need to track time in the hook env itself.

A callback could be provided that prints a timestamp and the shrink success/failure counts every 10 seconds. (Should that be the default for shrink_post?)

Where available, the time tracking should use clock_gettime(CLOCK_MONOTONIC, &time);.

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

No branches or pull requests

1 participant