()
| 8 | ) |
| 9 | |
| 10 | func ExampleStart() { |
| 11 | // start a simple CPU profile and register |
| 12 | // a defer to Stop (flush) the profiling data. |
| 13 | defer profile.Start().Stop() |
| 14 | } |
| 15 | |
| 16 | func ExampleCPUProfile() { |
| 17 | // CPU profiling is the default profiling mode, but you can specify it |