Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

0 views
Skip to first unread message

qingh...@gmail.com

unread,
Mar 5, 2008, 5:46:09 PM3/5/08
to
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.

Victor Bazarov

unread,
Mar 5, 2008, 5:55:27 PM3/5/08
to
qingh...@gmail.com wrote:
> 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
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


0 new messages