HP gnu source-level debugger 5992-4701 Use info heap, the result does not show any, Allocations

Models: gnu source-level debugger 5992-4701

1 369
Download 369 pages 58.54 Kb
Page 160
Image 160

 

use info heap, the result does not show any

 

allocations.

info heap filename

Writes heap report output to the specified file.

info heap idnumber

Produces detailed information on the specified

 

heap allocation including the allocation call stack.

show heap-check

Displays all current settings for memory

 

checking.

set heap-check interval <

This command starts incremental heap growth

nn >

profile. All allocations prior to the execution of

 

this command are ignored from report. If

 

incremental heap growth profile is already on,

 

executing this command will reset the counters

 

and start a fresh collection. Interval is specified

 

in seconds.

set heap-check repeat < nn

This allows user to specify the number of

>

intervals GDB should collect the incremental

 

heap growth. The default value is 100. Every

 

repeat of the interval tracks heap allocation

 

during that interval.

 

Example:

 

< gdb > set heap-check interval 10

 

< gdb > set heap-check repeat 100

 

Here WDB will create 100 incremental apart heap

 

profiles which are 10 seconds apart.

set heap-check reset

GDB stores incremental heap growth data in an

 

internal file. During one session data is appended

 

to this file. If the session is very long, it is possible

 

that this file may become very large. This

 

command discards the data existing in the file

 

and creates a new data file. Once this command

 

is executed, the user cannot see the old data.

info heap-interval < file

This command creates the report of heap growth.

name >

The data for each interval has the start and end

 

time of the interval. If file name is mentioned a

 

detailed report is written in the file.

set heap-check leaks [on off]

info leaks

Controls WDB memory leak checking.

Displays a leak report, listing information such as the leaks, size of blocks, and number of instances.

160 HP-UX Configuration-Specific Information

Page 160
Image 160
HP gnu source-level debugger 5992-4701 manual Use info heap, the result does not show any, Allocations, Checking, Seconds