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