Arbitrary container of sample entries. More...
#include <sample_container.h>
Public Types | |
| typedef std::map < sample_index_t, sample_entry > | samples_storage |
| typedef samples_storage::const_iterator | samples_iterator |
Public Member Functions | |
| samples_iterator | begin (symbol_entry const *) const |
| return iterator to the first samples for this symbol | |
| samples_iterator | end (symbol_entry const *) const |
| return iterator to the last samples for this symbol | |
| samples_iterator | begin () const |
| return iterator to the first samples | |
| samples_iterator | end () const |
| return iterator to the last samples | |
| void | insert (symbol_entry const *symbol, sample_entry const &) |
| insert a sample entry by creating a new entry or by cumulating samples into an existing one. | |
| count_array_t | accumulate_samples (debug_name_id filename_id) const |
| return nr of samples in the given filename | |
| count_array_t | accumulate_samples (debug_name_id, size_t linenr) const |
| return nr of samples at the given line nr in the given file | |
| sample_entry const * | find_by_vma (symbol_entry const *symbol, bfd_vma vma) const |
| return the sample entry for the given image_name and vma if any | |
Arbitrary container of sample entries.
Can return number of samples for a file or line number and return the particular sample information for a VMA.
| typedef samples_storage::const_iterator sample_container::samples_iterator |
| typedef std::map<sample_index_t, sample_entry> sample_container::samples_storage |
| count_array_t sample_container::accumulate_samples | ( | debug_name_id | filename, | |
| size_t | linenr | |||
| ) | const |
return nr of samples at the given line nr in the given file
References sample_entry::file_loc, file_location::filename, and file_location::linenr.
| count_array_t sample_container::accumulate_samples | ( | debug_name_id | filename_id | ) | const |
return nr of samples in the given filename
References sample_entry::file_loc, file_location::filename, and file_location::linenr.
| sample_container::samples_iterator sample_container::begin | ( | ) | const |
return iterator to the first samples
| sample_container::samples_iterator sample_container::begin | ( | symbol_entry const * | symbol | ) | const |
return iterator to the first samples for this symbol
| sample_container::samples_iterator sample_container::end | ( | ) | const |
return iterator to the last samples
| sample_container::samples_iterator sample_container::end | ( | symbol_entry const * | symbol | ) | const |
return iterator to the last samples for this symbol
| sample_entry const * sample_container::find_by_vma | ( | symbol_entry const * | symbol, | |
| bfd_vma | vma | |||
| ) | const |
return the sample entry for the given image_name and vma if any
| void sample_container::insert | ( | symbol_entry const * | symbol, | |
| sample_entry const & | sample | |||
| ) |
insert a sample entry by creating a new entry or by cumulating samples into an existing one.
Can only be done before any lookups
References sample_entry::counts, and sample_entry::vma.
1.6.1