Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • So, how could this tool be used to report the peak RAM usage of a program after that program has exited?
    – terdon
    Commented Mar 23, 2015 at 19:23
  • @terdon It uses wait4 to catch process exit in a combination with cgroups (memory.max_usage_in_bytes), which seems to make sense. More details are available in the README on github. Commented Mar 23, 2015 at 19:37
  • Thanks, but my point was more about your answer. As it stands, it is not answering the question, only pointing to some external resource that might be able to. Also, you've posted the exact same answer elsewhere which raises an automatic flag. Please edit your answer and include an example showing how this program can do what the OP is asking for.
    – terdon
    Commented Mar 23, 2015 at 19:40
  • 2
    @terdon Yes, I did! Because I have searched for the same question and the questions are pretty much the same, and answers are all the same: 'parse ps output', which is crazy! I spent a week before accidentally bumped into cgmemtime project, which is the perfect match for all those questions, that I have commented on! Commented Mar 23, 2015 at 19:48
  • 1
    Fair enough. It would just be great if you could give an example of how it could be used. It would improve your answer. In any case, thanks for taking the time to post this, I'm sure others will find it useful.
    – terdon
    Commented Mar 23, 2015 at 19:50