LLDB mainline
|
#include <DecodedThread.h>
Public Member Functions | |
void | RecordEvent (lldb::TraceEvent event) |
Public Attributes | |
std::unordered_map< lldb::TraceEvent, uint64_t > | events_counts |
A count for each individual event kind. | |
uint64_t | total_count = 0 |
Definition at line 122 of file DecodedThread.h.
void DecodedThread::EventsStats::RecordEvent | ( | lldb::TraceEvent | event | ) |
Definition at line 208 of file DecodedThread.cpp.
Referenced by lldb_private::trace_intel_pt::DecodedThread::AppendEvent().
std::unordered_map<lldb::TraceEvent, uint64_t> lldb_private::trace_intel_pt::DecodedThread::EventsStats::events_counts |
A count for each individual event kind.
We use an unordered map instead of a DenseMap because DenseMap can't understand enums.
Note: We can't use DenseMap because lldb::TraceEvent is not automatically handled correctly by DenseMap. We'd need to implement a custom DenseMapInfo struct for TraceEvent and that's a bit too much for such a simple structure.
Definition at line 130 of file DecodedThread.h.
Referenced by lldb_private::trace_intel_pt::TraceIntelPT::DumpTraceInfo(), and lldb_private::trace_intel_pt::TraceIntelPT::DumpTraceInfoAsJson().
uint64_t lldb_private::trace_intel_pt::DecodedThread::EventsStats::total_count = 0 |
Definition at line 131 of file DecodedThread.h.
Referenced by lldb_private::trace_intel_pt::TraceIntelPT::DumpTraceInfo(), and lldb_private::trace_intel_pt::TraceIntelPT::DumpTraceInfoAsJson().