[clang] [llvm] [TimeProfiler] Fix duration rounding bias (PR #228677)
Arthur Eubanks via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 4 13:48:53 PST 2026
================
@@ -73,12 +73,18 @@ using NameAndCountAndDurationType =
/// Represents an open or completed time section entry to be captured.
struct llvm::TimeTraceProfilerEntry {
- const TimePointType Start;
+ TimePointType Start;
TimePointType End;
- const std::string Name;
+ std::string Name;
TimeTraceMetadata Metadata;
- const TimeTraceEventType EventType = TimeTraceEventType::CompleteEvent;
+ TimeTraceEventType EventType = TimeTraceEventType::CompleteEvent;
+ ClockType::rep StartUs = 0;
+ ClockType::rep DurUs = 0;
+ int32_t LastChildIdx = -1;
----------------
aeubanks wrote:
I think this requires a lot more explanation, I was only able to understand that this was a post-order traversal asking an llm to review this
https://github.com/llvm/llvm-project/pull/228677
More information about the cfe-commits
mailing list