Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
felixge committed Jun 24, 2020
1 parent 877f4c2 commit 0631f22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ However, this can be very tedious for large programs. You'll also have to figure

### /debug/pprof/profile

So, this seems like a perfect use case for a profiler. Let's try the builtin pprof profiler to analyze our program for 10s:
So, this seems like a perfect use case for a profiler. Let's try the `/debug/pprof/profile` endpoint of the builtin `net/http/pprof` pkg to analyze our program for 10s:

```go
import _ "net/http/pprof"
Expand Down Expand Up @@ -122,7 +122,7 @@ Oh no, the builtin CPU profiler is misleading us! How is that possible? Well, it

### /debug/pprof/trace

Let's try something else. The `/debug/pprof/trace` endpoint includes a "synchronization blocking profile" profile, maybe that's what we need?
Let's try something else. The `/debug/pprof/trace` endpoint includes a "synchronization blocking profile", maybe that's what we need?

```
curl -so pprof.trace http://localhost:6060/debug/pprof/trace?seconds=10
Expand Down

0 comments on commit 0631f22

Please sign in to comment.