This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]