()
| 14 | } |
| 15 | |
| 16 | func ExampleCPUProfile() { |
| 17 | // CPU profiling is the default profiling mode, but you can specify it |
| 18 | // explicitly for completeness. |
| 19 | defer profile.Start(profile.CPUProfile).Stop() |
| 20 | } |
| 21 | |
| 22 | func ExampleMemProfile() { |
| 23 | // use memory profiling, rather than the default cpu profiling. |