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

add sleep loop option #4

Open
tobert opened this issue May 2, 2014 · 0 comments
Open

add sleep loop option #4

tobert opened this issue May 2, 2014 · 0 comments

Comments

@tobert
Copy link
Owner

tobert commented May 2, 2014

Add a -interval / -n option to make pcstat display results every N seconds (or fractions of a second). Do not bother with \r or other terminal interactions to keep it simple. Just print a new dataset on every iteration. Should work with all output modes.

e.g.

pcstat -interval 1 -json > pcstats.json
pcstat -n 1
pcstat -terse -n 1

Ideally a hook can be added inside the getMincore() function to accept a function that it will call in a loop to avoid the open/mmap on every iteration. This is fairly complicated when multiple files are in play, so I need to think about how to do it some more.

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