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

[feature suggestion] perftools should be able to show cumulative memory of the process #541

Open
alk opened this issue Aug 23, 2015 · 1 comment

Comments

@alk
Copy link
Contributor

alk commented Aug 23, 2015

Originally reported on Google Code with ID 538

Currenlty, perftools keeps track of the cumulatively allocated memory, and dumps the
profile after every new gigabyte of cumulative memory allocated.

Sometimes it is useful to show only cumulative memory allocated by the certain point.
Or allocated between the particular time points.

I have the process that isn't high in allocated memory, but is high in cumulatively
allocated memory. (heap is low, but profiles are dumped a lot) So it allocates/frees
a lot while it works. This isn't expected, and perftools could help understand the
situation.

So, I suggest adding the separate environment variable:
CUMPROFILE=/tmp/cumulative

When such variable is set, perftools should write the /tmp/cumulative profile which
will be just like the heap profile, but instead of allocated memory will show cumulative
memory. In other words, heap profile is delta between cumulative profile and the aggregate
of all free operations performed.

This feature will allow some better insight into the process memory allocation.

Reported by yurivict on 2013-06-06 17:16:22

@alk
Copy link
Contributor Author

alk commented Aug 23, 2015

A patch would be awesome.

Reported by alkondratenko on 2013-07-06 23:16:12

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