test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
VertexTracker.h File Reference
#include <atomic>
#include <iosfwd>
#include <string>
#include "Sym.h"
#include "ProfParseTypedefs.h"

Go to the source code of this file.

Classes

struct  VertexTracker
 

Functions

std::ostream & operator<< (std::ostream &os, VertexTracker const &vt)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
VertexTracker const &  vt 
)

Definition at line 8 of file VertexTracker.cc.

References VertexTracker::addr_, VertexTracker::id_, VertexTracker::in_path_, VertexTracker::library_, VertexTracker::name_, VertexTracker::percent_leaf_, VertexTracker::percent_path_, VertexTracker::total_as_leaf_, and VertexTracker::total_seen_.

9 {
10 // static int empty_count = 1;
11 // std::string name = vt.name_;
12 
13  // this is a bad place for this code
14 // if (name.empty())
15 // {
16 // std::ostringstream ostr;
17 // ostr << "EmptyName-" << empty_count;
18 // ++empty_count;
19 // name = ostr.str();
20 // }
21 
22  ost << vt.id_ << '\t'
23  << (void*)vt.addr_ << '\t'
24  << vt.total_as_leaf_ << '\t'
25  << vt.total_seen_ << '\t'
26  << vt.in_path_ << '\t'
27  << vt.percent_leaf_ << '\t'
28  << vt.percent_path_ << '\t'
29  << '"' << vt.library_ << "\"\t"
30  << '"' << vt.name_ << '"';
31 
32  return ost;
33 }