Skip to content


BFE has built-in CPU profile interfaces, which can be used in conjunction with the FlameGraph tool to locate and analyze performance problems.

Configure monitor port

Set monitor port in the BFE core configuration file (conf/bfe.conf).

MonitorPort = 8421


  • FlameGragh
$ git clone

Which contains and tools


  • Get performance sampling data
$ go tool pprof -seconds=60 -raw -output=bfe.pprof  http://<addr>:<port>/debug/pprof/profile

Note: seconds=60 means capturing 60 seconds of stack samples

  • Transform and draw FlameGraph
$ ./ bfe.pporf > bfe.flame
$ ./ bfe.flame > bfe.svg
  • Open bfe.svg in browser

flame graph example