 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Robert Houdart Guest
|
Posted: Wed May 04, 2005 10:24 am Post subject: MM Replay Log Analysis Tool |
|
|
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
|
Posted: Wed May 04, 2005 1:05 pm Post subject: Re: MM Replay Log Analysis Tool |
|
|
Nice tool!
What is the exact meaning of the 4 options at the top?
Eric
|
|
| Back to top |
|
 |
Robert Houdart Guest
|
Posted: Wed May 04, 2005 1:19 pm Post subject: Re: MM Replay Log Analysis Tool |
|
|
| 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
|
Posted: Wed May 04, 2005 2:08 pm Post subject: Re: MM Replay Log Analysis Tool |
|
|
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
|
Posted: Wed May 04, 2005 6:15 pm Post subject: Re: MM Replay Log Analysis Tool |
|
|
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 |
|
 |
|
|
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
|
|