How Profile Memory Usage (Count number of the instanaces for eachclass)

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.
 
V

Victor Bazarov

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?

Take a look at AutomatedQA's AQtime. They _may_ have what you need.
Not sure about the platform, though. I know they work on Windows.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top