#include <DebugInfoCollector.h>
Definition at line 13 of file DebugInfoCollector.h.
◆ DebugInfoCollector()
DebugInfoCollector::DebugInfoCollector |
( |
const std::string & |
name = "Unknown" , |
|
|
bool |
byTime = true |
|
) |
| |
◆ ~DebugInfoCollector()
DebugInfoCollector::~DebugInfoCollector |
( |
| ) |
|
◆ collect()
void DebugInfoCollector::collect |
( |
const std::string & |
key, |
|
|
const std::string & |
info |
|
) |
| |
|
overridevirtual |
◆ toString()
std::string DebugInfoCollector::toString |
( |
| ) |
const |
|
overridevirtual |
◆ toStringByMsgKey()
std::string DebugInfoCollector::toStringByMsgKey |
( |
| ) |
const |
|
private |
Definition at line 26 of file DebugInfoCollector.cxx.
30 ss <<
"DEBUGInfoCollector: "
33 std::size_t msg_i {0};
35 ss <<
"msg " << msg_i <<
": " <<
i.first <<
'\n';
37 for(
const auto&
m :
i.second){
39 ss <<
int(
m.first) <<
" " <<
m.second <<
'\n';}
◆ toStringByTime()
std::string DebugInfoCollector::toStringByTime |
( |
| ) |
const |
|
private |
Definition at line 44 of file DebugInfoCollector.cxx.
47 std::map<unsigned long, std::string> by_time;
50 for(
const auto& tm :
p.second){
55 auto timestamp =
static_cast<unsigned long>(tm.first);
56 by_time[timestamp] =
p.first +
" " + tm.second;
61 ss <<
"DEBUGInfoCollector: "
64 for(
const auto&
i: by_time){
65 ss <<
i.first <<
" " <<
i.second <<
'\n';
◆ write()
void DebugInfoCollector::write |
( |
| ) |
const |
|
overridevirtual |
◆ m_byTime
bool DebugInfoCollector::m_byTime |
|
private |
◆ m_info
std::map<std::string, std::vector<std::pair<double, std::string> > > DebugInfoCollector::m_info |
|
private |
◆ m_name
std::string DebugInfoCollector::m_name |
|
private |
◆ m_timer
The documentation for this class was generated from the following files: