How to: [⏫](#contents) Get on/off CPU profiles with [fgprof](https://github.com/felixge/fgprof)
This tool can be more illustrative of Go profiles than standard Go profiling. — [@felixge](https://github.com/felixge)

```go
package main

import (
  "log"
  "net/http"
  _ "net/http/pprof"

  "github.com/felixge/fgprof"
)

func main() {
  http.DefaultServeMux.Handle("/debug/fgprof", fgprof.Handler())
  go func() {
    log.Println(http.ListenAndServe(":6060", nil))
  }()

  //
```
}
```
```