Q
qinghu.liao
I want to improve my application's memory usage. But before I can do
anything, I'm supposed to profile it first.
1. The first step would be count the number of objects for each class,
and thus I can see hot pots and where I can start to reduce memory
usage.
2. The second goal would be monitor the frequency of new/delete for
each class, those highly rated class would be better allocated into
memory pool. and this going to help me improve the overall application
performance.
How could easily achieve these goals, or there is any existing
software can do that?
Don't tell me the way to put the counter into each class's
constructor/
destructor, since the application is huge and contain too many
classes to be easily instrumented.
anything, I'm supposed to profile it first.
1. The first step would be count the number of objects for each class,
and thus I can see hot pots and where I can start to reduce memory
usage.
2. The second goal would be monitor the frequency of new/delete for
each class, those highly rated class would be better allocated into
memory pool. and this going to help me improve the overall application
performance.
How could easily achieve these goals, or there is any existing
software can do that?
Don't tell me the way to put the counter into each class's
constructor/
destructor, since the application is huge and contain too many
classes to be easily instrumented.