Diff of /libpp/format_output.cpp [ecfbcc] .. [74abfb]  Maximize  Restore

  Switch to unified view

a/libpp/format_output.cpp b/libpp/format_output.cpp
...
...
96
    nr_classes(1),
96
    nr_classes(1),
97
    flags(ff_none),
97
    flags(ff_none),
98
    vma_64(false),
98
    vma_64(false),
99
    long_filenames(false),
99
    long_filenames(false),
100
    need_header(true),
100
    need_header(true),
101
  global_percent(false),
101
    extra_found_images(extra)
102
    extra_found_images(extra)
102
{
103
{
103
    format_map[ff_vma] = field_description(9, "vma", &formatter::format_vma);
104
    format_map[ff_vma] = field_description(9, "vma", &formatter::format_vma);
104
    format_map[ff_nr_samples] = field_description(9, "samples", &formatter::format_nr_samples);
105
    format_map[ff_nr_samples] = field_description(9, "samples", &formatter::format_nr_samples);
105
    format_map[ff_nr_samples_cumulated] = field_description(14, "cum. samples", &formatter::format_nr_cumulated_samples);
106
    format_map[ff_nr_samples_cumulated] = field_description(14, "cum. samples", &formatter::format_nr_cumulated_samples);
...
...
509
    symbol_collection::const_iterator it;
510
    symbol_collection::const_iterator it;
510
    symbol_collection::const_iterator end = syms.end();
511
    symbol_collection::const_iterator end = syms.end();
511
512
512
    for (it = syms.begin(); it < end; ++it) {
513
    for (it = syms.begin(); it < end; ++it) {
513
        cg_symbol const * sym = dynamic_cast<cg_symbol const *>(*it);
514
        cg_symbol const * sym = dynamic_cast<cg_symbol const *>(*it);
515
      // To silence coverity (since dynamic cast can theoretically return NULL)
516
      if (!sym)
517
          continue;
514
518
515
        cg_symbol::children::const_iterator cit;
519
        cg_symbol::children::const_iterator cit;
516
        cg_symbol::children::const_iterator cend = sym->callers.end();
520
        cg_symbol::children::const_iterator cend = sym->callers.end();
517
521
518
        counts_t c;
522
        counts_t c;
...
...
608
    :
612
    :
609
    formatter(extra),
613
    formatter(extra),
610
    profile(p),
614
    profile(p),
611
    symbols(s),
615
    symbols(s),
612
    need_details(false),
616
    need_details(false),
617
  detail_count(0),
613
    symbol_filter(sf)
618
    symbol_filter(sf)
614
{
619
{
615
    if (profile)
620
    if (profile)
616
        counts.total = profile->samples_count();
621
        counts.total = profile->samples_count();
617
}
622
}