BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MM Replay Log Analysis Tool

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM
View previous topic :: View next topic  
Author Message
Robert Houdart
Guest





PostPosted: Wed May 04, 2005 10:24 am    Post subject: MM Replay Log Analysis Tool Reply with quote



Hi all,
I've uploaded (attachments section) a small tool to analyse the contents of
a Memory Usage Replay log. It shows the size distribution of the memory
allocations and their impact on the over-all memory usage (average and
peak).
Compile, click the "Analysis" button, and select the replay log file.

Robert


Back to top
Eric Grange
Guest





PostPosted: Wed May 04, 2005 1:05 pm    Post subject: Re: MM Replay Log Analysis Tool Reply with quote



Nice tool!

What is the exact meaning of the 4 options at the top?

Eric
Back to top
Robert Houdart
Guest





PostPosted: Wed May 04, 2005 1:19 pm    Post subject: Re: MM Replay Log Analysis Tool Reply with quote



Quote:
What is the exact meaning of the 4 options at the top?

1) Nominal = use the nominal requested size
2) 4-byte aligned = requests are rounded up to 4-byte multiple
3) 16-byte aligned = requests are rounded up to 16-byte multiple
4) +4 and 16-byte = add 4 bytes overhead, then round up to 16-byte multiple

Method 3) is used by FastMM, RecyclerMM, PSDMM etc.
Method 4) is used by BucketMM and probably NexusMM .

The results show the following for each individual memory size:
- Avg. Count = average number of blocks used
- Avg. Mem = average memory used
- Peak Mem = peak memory used
- Allocations = total number of allocations
- Avg. size = average size of the requests

Robert



Back to top
Eric Grange
Guest





PostPosted: Wed May 04, 2005 2:08 pm    Post subject: Re: MM Replay Log Analysis Tool Reply with quote

Ok thanks!

In a further revision, would it be possible to have some reallocations
stats? Like a number of times reallocated from size-range, and number
of times reallocated to size-range, f.i. it allocates 16 bytes
and then reallocs a first time to 24, and then a second time to 32,
you would have something like:

Realloc From Realloc To
-16 1 0
17-32 1 2

Give them a hand, they'll want the whole arm ;)

Eruic
Back to top
Robert Houdart
Guest





PostPosted: Wed May 04, 2005 6:15 pm    Post subject: Re: MM Replay Log Analysis Tool Reply with quote

Hi,
v2 uploaded to attachments section with new features:
- ReallocFrom and ReallocTo shown (need a wide screen)
- New alignment option: +1 byte overhead, rounded up to 8-byte multiple

Curiously the memory usage of the (+1, 8-byte aligment) is quite similar to
the 16-byte alignment.

Robert


"Eric Grange" <egrangeNO (AT) SPAMglscene (DOT) org> wrote in message...
Quote:
In a further revision, would it be possible to have some reallocations
stats? Like a number of times reallocated from size-range, and number
of times reallocated to size-range, f.i. it allocates 16 bytes
and then reallocs a first time to 24, and then a second time to 32,
you would have something like:

Realloc From Realloc To
-16 1 0
17-32 1 2

Give them a hand, they'll want the whole arm ;)

Eruic



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.