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

Make -s switch behavior consistent with Windows version #121

Open
MarioHewardt opened this issue Aug 19, 2021 · 0 comments
Open

Make -s switch behavior consistent with Windows version #121

MarioHewardt opened this issue Aug 19, 2021 · 0 comments
Labels

Comments

@MarioHewardt
Copy link
Collaborator

The -s switch needs to behave as the Windows version. On Windows, the -s switch states to only generate a dump if the condition was true throughout the -s interval. On Linux version, we generate a core dump immediately when the condition triggers and then wait for -s interval.

Here is an example of Windows:

Write up to 3 mini dumps of a process named 'consume' when it exceeds 20% CPU usage for five seconds:

C:>procdump -c 20 -s 5 -n 3 consume

So, we need to pull the metrics multiple times throughout the -s time period and only generate if they all satisfied the threshold.

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

No branches or pull requests

1 participant