This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Want to know more about gprof histogram
- From: "Raja Saleru" <raja dot saleru at iap-online dot com>
- To: <binutils at sourceware dot org>
- Cc: <drow at false dot org>
- Date: Tue, 17 Jun 2008 12:16:53 +0900
- Subject: Want to know more about gprof histogram
Hi
I would like to know more about the GNU profiling.
1. While collecting the histogram information, how many segments the program
is divided ?
2. For example if the size of the text segment is 49640 bytes and the number
of histogram bins are 12410, then does it mean text space for each bin is
49640/12410 = 4 bytes ? In this case does it mean after every 4-bytes
profile_count() is called ?
3. Histogram counter is unsigned long that is limited to 2-bytes ? On what
basis it is done ? when it can overflow ? If it overflows does it cause any
problem ?
Please update me on the above queries.
Thanks in advance.
Regards
Raja saleru