LLDB mainline
Public Member Functions | Public Attributes | List of all members
lldb_private::trace_intel_pt::DecodedThread::EventsStats Struct Reference

#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
 

Detailed Description

Definition at line 122 of file DecodedThread.h.

Member Function Documentation

◆ RecordEvent()

void DecodedThread::EventsStats::RecordEvent ( lldb::TraceEvent  event)

Member Data Documentation

◆ events_counts

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().

◆ total_count

uint64_t lldb_private::trace_intel_pt::DecodedThread::EventsStats::total_count = 0

The documentation for this struct was generated from the following files: