You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`netbug` also provides a simple way of adding some authentication:
47
47
@@ -79,6 +79,17 @@ As an example though, if you want to run a 30-second CPU profile on your running
79
79
$ go tool pprof https://example.com/myroute/profile
80
80
```
81
81
82
+
##### New in Go 1.5
83
+
You can now produce [execution traces](https://golang.org/pkg/runtime/trace/) of your remotely running program using netbug.
84
+
85
+
To do this run one of the trace profiles, which will result in a file being downloaded. Then use the Go `trace` tool to generate a trace, which will open up in your browser.
86
+
87
+
```
88
+
$ go tool trace binary-being-profiled /path/to/downloaded/trace
89
+
```
90
+
91
+
When compiling `binary-being-profiled`, you will need to have targeted the same architecture as the binary that generated the profile.
92
+
82
93
## Background
83
94
The [net/http/pprof](http://golang.org/pkg/net/http/pprof/) package is great.
84
95
It let's you access profiling and debug information about your running services, via `HTTP`, and even plugs straight into `go tool pprof`.
0 commit comments