commands/leak/leak.cif
changeset 59 c9dfb364c2d1
parent 31 d0e1c40de386
equal deleted inserted replaced
58:377ac716dabb 59:c9dfb364c2d1
    16 
    16 
    17 A tool for purposefully wasting memory.
    17 A tool for purposefully wasting memory.
    18 
    18 
    19 ==long-description
    19 ==long-description
    20 
    20 
    21 Sits in a loop allocating memory. This continues until either the specified amount of memory has been consumed, or an error occurs. The allocations can be configured to come from a raw RChunk, or via an RHeap (C<User::ChunkHeap()>). The command waits for a keypress before exiting and freeing the memory.
    21 Sits in a loop allocating memory. This continues until either the specified amount of memory has been consumed, or an error occurs. The allocations are not done in the main application heap, rather the from a raw RChunk (the default), or via an RHeap (C<User::ChunkHeap()>) if the C<--heap> option is given. The command waits for a keypress before exiting and freeing the memory.
    22 
    22 
    23 ==see-also
    23 ==see-also
    24 
    24 
    25 L<gobble|gobble>
    25 L<gobble|gobble>
    26 
    26 
    38 
    38 
    39 ==option uint r rate
    39 ==option uint r rate
    40 
    40 
    41 The amount of time (in milliseconds) to wait between each increment. Defaults to zero (i.e. no wait).
    41 The amount of time (in milliseconds) to wait between each increment. Defaults to zero (i.e. no wait).
    42 
    42 
    43 ==option uint a address
       
    44 
       
    45 The address of a heap to leak into. The value should be in the address space of the process given by the C<--processid> option.
       
    46 
       
    47 ==option bool H heap
    43 ==option bool H heap
    48 
    44 
    49 Use a ChunkHeap to consume the memory rather than a straight RChunk.
    45 Use a ChunkHeap to consume the memory rather than a straight RChunk.
    50 
    46 
    51 ==option bool t retry
    47 ==option bool t retry