WIP
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/source/API/SBTraceCursor.cpp | ||
---|---|---|
131 | open to suggestions on the best way to indicate that the current item doesn't have a timestamp associated with it |
lldb/source/API/SBTraceCursor.cpp | ||
---|---|---|
131 | Could we use llvm::Optional? Sorry if that is a silly suggestion. |
lldb/include/lldb/API/SBTraceCursor.h | ||
---|---|---|
175 | mention here that the trace plugin decides how to estimate wall clock time it needed, and that not all trace items are guaranteed to have wall clock time, as it depends on the trace plug-in capabilities | |
lldb/source/API/SBTraceCursor.cpp | ||
127–131 | we don't have optionals in the SB bridge, so you could do the following bool SBTraceCursor::GetWallClockTime(double &time) { if (const auto &maybe_wall_clock_time = m_opaque_sp->GetWallClockTime()) { time = *maybe_wall_clock_time; return true; } return false; } |
lldb/source/API/SBTraceCursor.cpp | ||
---|---|---|
127–131 | <3 |
mention here that the trace plugin decides how to estimate wall clock time it needed, and that not all trace items are guaranteed to have wall clock time, as it depends on the trace plug-in capabilities