LLDB mainline
Public Member Functions | Private Attributes | List of all members
lldb_private::trace_intel_pt::TaskTimer Class Reference

Class used to track the duration of long running tasks for reporting. More...

#include <TaskTimer.h>

Public Member Functions

ScopedTaskTimerForThread (lldb::tid_t tid)
 
ScopedTaskTimerForGlobal ()
 

Private Attributes

llvm::DenseMap< lldb::tid_t, ScopedTaskTimerm_thread_timers
 
ScopedTaskTimer m_global_timer
 

Detailed Description

Class used to track the duration of long running tasks for reporting.

Definition at line 60 of file TaskTimer.h.

Member Function Documentation

◆ ForGlobal()

ScopedTaskTimer & TaskTimer::ForGlobal ( )
Returns
The timer object for global tasks.

Definition at line 32 of file TaskTimer.cpp.

References m_global_timer.

Referenced by lldb_private::trace_intel_pt::TraceIntelPT::DumpTraceInfoAsJson(), and lldb_private::trace_intel_pt::TraceIntelPT::GetGlobalTimer().

◆ ForThread()

ScopedTaskTimer & TaskTimer::ForThread ( lldb::tid_t  tid)
Returns
The timer object for the given thread.

Definition at line 25 of file TaskTimer.cpp.

References m_thread_timers.

Referenced by lldb_private::trace_intel_pt::TraceIntelPT::DumpTraceInfoAsJson(), and lldb_private::trace_intel_pt::TraceIntelPT::GetThreadTimer().

Member Data Documentation

◆ m_global_timer

ScopedTaskTimer lldb_private::trace_intel_pt::TaskTimer::m_global_timer
private

Definition at line 72 of file TaskTimer.h.

Referenced by ForGlobal().

◆ m_thread_timers

llvm::DenseMap<lldb::tid_t, ScopedTaskTimer> lldb_private::trace_intel_pt::TaskTimer::m_thread_timers
private

Definition at line 71 of file TaskTimer.h.

Referenced by ForThread().


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