taskunderware - Tasks: task #3302, memory usage tracking : first step

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

task #3302: memory usage tracking : first step

Submitted by:  Loic Dachary <loic>
Submitted on:  Mon May 29 15:20:47 2006  
Should Start On: Sun May 28 22:00:00 2006Should be Finished on: Sun May 28 22:00:00 2006
Category: NonePriority: 1 - Later
Status: NonePrivacy: Public
Assigned to: Igor Kravtchenko <izidor79>Open/Closed: Open
Effort: 0.00

Mon May 29 15:20:47 2006, original submission:

rite a memory_usage function for PokerApplication* matching
the description below. The implementation of the function must return
a predefined constant.

Write a unittest based unit test that creates and destroys a PokerApplication*

Ensure it is memory clean (no corruption, no leak).

Implement the validation described below, based on the unit test but
ensure that the unit test can still be run without it.

Generic prototype of the memory usage function:

unsigned int memory_usage(ostream& out, void* pointer, std::string prefix);


memory_usage knows the type of pointer, explores it and returns the
total memory it uses, in bytes. In addition, the returned value must
be >> to out, immediately after prefix followed by newline.

If memory_usage calls other functions with the same semantics and prototype,
it is expected to provide each of these functions with a concatenation of
the prefix and a unique string.


The heap size difference (HeapDelta) (size after the allocation of
pointer minus size before the allocation of pointer) must be greater
or equal to the number returned by memory usage (MemoryUsage). In
additon, MemoryUsage - HeapDelta must not exceed 10% of the heap size.

This must be true for every unit test of the pointer type.

Loic Dachary <loic>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by loic (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup