Sometimes we want to limit the size of the profile by stripping some functions with low sample count or by stripping some function names with small text size from profile symbol list. That requires the profile reader to have the interfaces returning the size of a section or the size of total profile. The patch add those interfaces.
At the same time, add some dump facility to show the size of each section.
Perhaps makes this a virtual function and let the base impl return 'false' (so that caller can warn).