Skip to content

Commit

Permalink
📚
Browse files Browse the repository at this point in the history
  • Loading branch information
marcsauter committed Jun 24, 2020
1 parent f1fc4e6 commit 3b95fc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ profiler.New().Start()

// ... or with custom values
profiler.New(
profiler.WithSignal(syscall.SIGUSR2),
profiler.WithSignal(syscall.SIGUSR1),
profiler.WithAddress(":8080"),
profiler.WithTimeout(15 * time.Minute),
)
Expand All @@ -44,7 +44,7 @@ Defaults:

### Start the pprof endpoint
```bash
pkill -USR1 <your Go program>
pkill -HUP <your Go program>
```
After *timeout* the endpoint will shutdown.

Expand All @@ -62,7 +62,7 @@ NAME READY STATUS RESTARTS AGE
...

$ k exec -ti <your pod> sh
/ # pkill -USR1 <your Go program>
/ # pkill -HUP <your Go program>
/ #
```
After *timeout* the endpoint will shutdown.
Expand Down

0 comments on commit 3b95fc3

Please sign in to comment.