Classes | |
struct | Hist |
Functions | |
void | dump (ostream &co, EdmEventSize::BranchRecord const &br) |
void | shorterName (EdmEventSize::BranchRecord &br) |
void perftools::detail::dump | ( | ostream & | co, |
EdmEventSize::BranchRecord const & | br | ||
) |
Definition at line 161 of file EdmEventSize.cc.
References perftools::EdmEventSize::BranchRecord::compr_size, perftools::EdmEventSize::BranchRecord::name, and perftools::EdmEventSize::BranchRecord::uncompr_size.
Referenced by perftools::EdmEventSize::dump().
void perftools::detail::shorterName | ( | EdmEventSize::BranchRecord & | br | ) |
Definition at line 135 of file EdmEventSize.cc.
References perftools::EdmEventSize::BranchRecord::fullName, and perftools::EdmEventSize::BranchRecord::name.
Referenced by perftools::EdmEventSize::formatNames().
{ size_t b = br.fullName.find('_'); size_t e = br.fullName.rfind('_'); if (b==e) br.name=br.fullName; else { // remove type and process br.name = br.fullName.substr(b+1,e-b-1); // change label separator in : e = br.name.rfind('_'); if (e!=std::string::npos) br.name.replace(e,1,":"); // add the type name br.name.append(" ("+br.fullName.substr(0,b)+")"); } }