From de2d7416679f4f383da6a1e7dfc52845911845c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20Geisend=C3=B6rfer?= Date: Tue, 19 Aug 2025 16:51:39 +0200 Subject: [PATCH] internal/trace: use RFC3339Nano for wall clock snapshots in Event.String Improve the quality of life for people who use go tool trace -d=parsed to look at clock snapshot wall timestamps. Many use cases will benefit from seing the timestamp in sub-second resolution. Change-Id: I6a6a696403a2164db0c12789c764e22a5c519b1c Reviewed-on: https://go-review.googlesource.com/c/go/+/697355 LUCI-TryBot-Result: Go LUCI Auto-Submit: Michael Knyszek Reviewed-by: Carlos Amedee Reviewed-by: Michael Knyszek --- src/internal/trace/event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/trace/event.go b/src/internal/trace/event.go index 0204c2b5f5..a47f71b65e 100644 --- a/src/internal/trace/event.go +++ b/src/internal/trace/event.go @@ -879,7 +879,7 @@ func (e Event) String() string { fmt.Fprintf(&sb, " Trace=%d Mono=%d Wall=%s", s.ClockSnapshot.Trace, s.ClockSnapshot.Mono, - s.ClockSnapshot.Wall.Format(time.RFC3339), + s.ClockSnapshot.Wall.Format(time.RFC3339Nano), ) } } -- 2.52.0