diff options
author | Dominik Honnef <dominik@honnef.co> | 2024-01-20 17:37:50 +0100 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-03-14 02:20:08 +0000 |
commit | 6133c1e4e202af2b2a6d4873d5a28ea3438e5554 (patch) | |
tree | 40708a7177426584762cba5891d56c0163ab66f9 /doc | |
parent | 508bb17edd04479622fad263cd702deac1c49157 (diff) | |
download | go-6133c1e4e202af2b2a6d4873d5a28ea3438e5554.tar.gz go-6133c1e4e202af2b2a6d4873d5a28ea3438e5554.zip |
internal/trace/v2: support old trace format
Add support for traces from Go 1.11–1.19 by converting old traces to the
Go 1.22 format on the fly.
We import Gotraceui's trace parser, which is an optimized parser based
on Go 1.19's internal/trace package, and further modify it for the needs
of the conversion process.
With the optimized parser, loading old traces using the new API is twice
as fast and uses less total memory than 'go tool trace' did in older
versions.
The new parser does not, however, support traces from versions older
than 1.11.
This commit does not update cmd/trace to use the new API for old traces.
Change-Id: If9380aa515e29445ff624274d1760ee945ca4816
Reviewed-on: https://go-review.googlesource.com/c/go/+/557356
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions