Skip to content

Commit

Permalink
Expose cpu and wall time in TraceItem
Browse files Browse the repository at this point in the history
Exposes CPU/Wall time in the trace workers api instead of hiding it behind the UnsafeTraceMetrics binding now that we have the confidence we can safely expose this without any spectre issues.
  • Loading branch information
zebp committed Feb 24, 2025
1 parent 7100d99 commit 5d66722
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/workerd/api/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ class TraceItem final: public jsg::Object {
JSG_LAZY_READONLY_INSTANCE_PROPERTY(outcome, getOutcome);
JSG_LAZY_READONLY_INSTANCE_PROPERTY(executionModel, getExecutionModel);
JSG_LAZY_READONLY_INSTANCE_PROPERTY(truncated, getTruncated);
JSG_LAZY_READONLY_INSTANCE_PROPERTY(cpuTime, getCpuTime);
JSG_LAZY_READONLY_INSTANCE_PROPERTY(wallTime, getWallTime);
}

void visitForMemoryInfo(jsg::MemoryTracker& tracker) const;
Expand Down

0 comments on commit 5d66722

Please sign in to comment.