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>

Collaboration diagram for lldb_private::trace_intel_pt::TaskTimer:
Collaboration graph
[legend]

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 62 of file TaskTimer.h.

Member Function Documentation

◆ ForGlobal()

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

Definition at line 24 of file TaskTimer.cpp.

Referenced by lldb_private::trace_intel_pt::TraceIntelPT::DumpTraceInfo().

◆ ForThread()

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

Definition at line 17 of file TaskTimer.cpp.

Referenced by lldb_private::trace_intel_pt::TraceIntelPT::DumpTraceInfo().

Member Data Documentation

◆ m_global_timer

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

Definition at line 74 of file TaskTimer.h.

◆ m_thread_timers

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

Definition at line 73 of file TaskTimer.h.


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