| 1 |
sample/ contains a sample program that can be profiled. |
| 2 |
sample.bin is its x86-64 binary. |
| 3 |
sample.cpu is a profile generated by sample.bin. |
| 4 |
|
| 5 |
To update the binary and profile: |
| 6 |
|
| 7 |
```shell |
| 8 |
go build -o sample.bin ./sample |
| 9 |
./sample.bin -cpuprofile sample.cpu |
| 10 |
``` |