symbol.cpp

Go to the documentation of this file.
00001 
00013 #include "symbol.h"
00014 #include "locate_images.h"
00015 
00016 #include <iostream>
00017 #include <string>
00018 
00019 using namespace std;
00020 
00021 column_flags symbol_entry::output_hint(column_flags fl) const
00022 {
00023     if (app_name != image_name)
00024         fl = column_flags(fl | cf_image_name);
00025 
00026     // FIXME: see comment in symbol.h: why we don't use sample.vma + size ?
00027     if (sample.vma & ~0xffffffffLLU)
00028         fl = column_flags(fl | cf_64bit_vma);
00029 
00030     return fl;
00031 }
00032 
00033 
00034 
00035 bool has_sample_counts(count_array_t const & counts, size_t lo, size_t hi)
00036 {
00037     for (size_t i = lo; i <= hi; ++i)
00038         if (counts[i] != 0)
00039             return true;
00040     return false;
00041 }
00042 
00043 
00044 string const & get_image_name(image_name_id id,
00045                   image_name_storage::image_name_type type,
00046                   extra_images const & extra)
00047 {
00048     return image_names.get_name(id, type, extra);
00049 }

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1