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

Use GNU time to record maximum resident set size in addition to elapsed time #44

Open
Gbury opened this issue Jul 23, 2020 · 0 comments

Comments

@Gbury
Copy link
Collaborator

Gbury commented Jul 23, 2020

It is very convenient that currently benchpress records the time for each prover run, but it would be even more useful to also have an estimation of the memory used by each process. Fortunately, the GNU time utility provide such a fonctionality.

Something to that effect could be obtained by wrapping the prover calls like this:

/usr/bin/time -f "%e\n%M" -o some_tmp_file prover_cmd_to_run....

And then reading the temporary file for the output of time (%e is for the elapsed real time in seconds, and %M the maximum resident set size in Kbytes).

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

No branches or pull requests

1 participant