How to find out which containers use the most memory
<p>I had a problem with memory usage of my program, I suspected memory leak, although I thought it was strange cuz I use STL and I dont use new or malloc. So I used google heapcheck to find out if I have leaks. No luck. So now I'm looking for a way to check the size of the containers in my program(during runtime ofc). So is there any way using GDB or google perf tools or some other tools to figure out what container is eating:) my memory. So in short is there a tool that will produce something like this:</p>

<pre><code>dictionary     35.8MB (64.4%)
pre_cached     13.89MB  (25%)
...
</code></pre>
