gsauthof / cgmemtime

cgmemtime measures the high-water RSS+CACHE memory usage of a process and its descendant processes.
106 stars 16 forks source link

[Feature] Set memory and time limits #2

Open frol opened 9 years ago

frol commented 9 years ago

What do you think about adding extra options to be able to set memory and time limits for a given program?

It is not hard to add echo(memory_limit, "/memory.limit_in_bytes") and timer_settime(), but I would like to know whether it is ok to do it in cgmemtime project.

Any input is valuable. Thank you for this great project!

gsauthof commented 9 years ago

I think such options are a good idea and they would fit well into cgmemtime.

Feel free to create a pull request.

frol commented 9 years ago

@gsauthof Ok, I will make some refactorings and create a pull request.