|
LLDB mainline
|
A structure that represents a maximal range of trace items associated to the same non-interpolated timestamps in nanoseconds. More...
#include <DecodedThread.h>
Public Member Functions | |
| double | GetInterpolatedTime (uint64_t item_index, uint64_t beginning_of_time_nanos, const LinuxPerfZeroTscConversion &tsc_conversion) const |
| Calculate an interpolated timestamp in nanoseconds for the given item index. | |
| bool | InRange (uint64_t item_index) const |
Public Attributes | |
| uint64_t | nanos |
| The nanoseconds value for this range. | |
| TSC | tsc |
| The corresponding TSC value for this range. | |
| NanosecondsRange * | next_range |
| A nullable pointer to the next range. | |
| uint64_t | items_count |
| Number of trace items in this range. | |
| uint64_t | first_item_index |
| Index of the first trace item in this range. | |
A structure that represents a maximal range of trace items associated to the same non-interpolated timestamps in nanoseconds.
Definition at line 83 of file DecodedThread.h.
| double DecodedThread::NanosecondsRange::GetInterpolatedTime | ( | uint64_t | item_index, |
| uint64_t | beginning_of_time_nanos, | ||
| const LinuxPerfZeroTscConversion & | tsc_conversion ) const |
Calculate an interpolated timestamp in nanoseconds for the given item index.
It's guaranteed that two different item indices will produce different interpolated values.
| [in] | item_index | The index of the item whose timestamp will be estimated. It has to be part of this range. |
| [in] | beginning_of_time_nanos | The timestamp at which tracing started. |
| [in] | tsc_conversion | The tsc -> nanos conversion utility |
Definition at line 43 of file DecodedThread.cpp.
References first_item_index, items_count, nanos, next_range, lldb_private::LinuxPerfZeroTscConversion::ToNanos(), and tsc.
| bool DecodedThread::NanosecondsRange::InRange | ( | uint64_t | item_index | ) | const |
item_index is covered by this range. Definition at line 38 of file DecodedThread.cpp.
References first_item_index, and items_count.
| uint64_t lldb_private::trace_intel_pt::DecodedThread::NanosecondsRange::first_item_index |
Index of the first trace item in this range.
Definition at line 93 of file DecodedThread.h.
Referenced by GetInterpolatedTime(), and InRange().
| uint64_t lldb_private::trace_intel_pt::DecodedThread::NanosecondsRange::items_count |
Number of trace items in this range.
Definition at line 91 of file DecodedThread.h.
Referenced by GetInterpolatedTime(), and InRange().
| uint64_t lldb_private::trace_intel_pt::DecodedThread::NanosecondsRange::nanos |
The nanoseconds value for this range.
Definition at line 85 of file DecodedThread.h.
Referenced by GetInterpolatedTime().
| NanosecondsRange* lldb_private::trace_intel_pt::DecodedThread::NanosecondsRange::next_range |
A nullable pointer to the next range.
Definition at line 89 of file DecodedThread.h.
Referenced by GetInterpolatedTime().
| TSC lldb_private::trace_intel_pt::DecodedThread::NanosecondsRange::tsc |
The corresponding TSC value for this range.
Definition at line 87 of file DecodedThread.h.
Referenced by GetInterpolatedTime().