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 29 May 2006 03:20:47 PM UTC  
 
Should Start On: Sun 28 May 2006 10:00:00 PM UTCShould be Finished on: Sun 28 May 2006 10:00:00 PM UTC
Category: NonePriority: 1 - Later
Status: NonePrivacy: Public
Assigned to: Igor Kravtchenko <izidor79>Open/Closed: Open
Effort: 0.00
URL: 

Mon 29 May 2006 03:20:47 PM UTC, 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);

Semantics:

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.

Validation:

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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup