~f4814n/frost

29d189d9455cc8abf9eef83c911f83b7da3b9f84 — Fabian Geiselhart 10 months ago d256ddd
Embedd net/http/pprof if compiled witht the profile flag
1 files changed, 14 insertions(+), 0 deletions(-)

A cmd/frost/profile.go
A cmd/frost/profile.go => cmd/frost/profile.go +14 -0
@@ 0,0 1,14 @@
//+build profile

package main

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

func init() {
	go func() {
		http.ListenAndServe("localhost:6060", nil)
	}()
}