#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.
26 {
27
28
30 ss <<
"DEBUGInfoCollector: "
32
33 std::size_t msg_i {0};
34 for(
const auto& i:
m_info){
35 ss <<
"msg " << msg_i <<
": " <<
i.first <<
'\n';
36 ++msg_i;
37 for(
const auto& m :
i.second){
38
39 ss <<
int(
m.first) <<
" " <<
m.second <<
'\n';}
40 }
42}
◆ toStringByTime()
| std::string DebugInfoCollector::toStringByTime |
( |
| ) |
const |
|
private |
Definition at line 44 of file DebugInfoCollector.cxx.
44 {
45
46
47 std::map<unsigned long, std::string> by_time;
48
49 for(
const auto& p :
m_info){
50 for(
const auto& tm :
p.second){
51
52
53
54
55 auto timestamp = static_cast<unsigned long>(tm.first);
56 by_time[timestamp] =
p.first +
" " + tm.second;
57 }
58 }
59
61 ss <<
"DEBUGInfoCollector: "
63
64 for(const auto& i: by_time){
65 ss <<
i.first <<
" " <<
i.second <<
'\n';
66 }
68}
◆ 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: