]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.22] cmd/trace/v2: handle the -pprof flag
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 11 Apr 2024 20:30:24 +0000 (20:30 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 24 Jul 2024 16:45:54 +0000 (16:45 +0000)
commit2c88c1d59967e173053e97e51ab8c3e317108f63
treefc7f4d9c59a6dc7893e8c1b446960539a9e6ef03
parent4c50f9162cafaccc1ab1bc26b0dea18f124b536d
[release-branch.go1.22] cmd/trace/v2: handle the -pprof flag

Turns out we ported all the profile generation, but forgot to actually
support the command line flags for them! This change fixes the issue by
handling the different kinds of profiles and writing them out to stdout.

For #66782
For #68542
For #68546

Change-Id: I7756fb4636ce8daaf11ed471be79c86ce3d463cc
Reviewed-on: https://go-review.googlesource.com/c/go/+/578318
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
(cherry picked from commit e14aad1faf6f511e342d124681bc0146e426f9aa)
Reviewed-on: https://go-review.googlesource.com/c/go/+/600255
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/trace/v2/main.go