1
1
mirror of https://github.com/wader/fq.git synced 2024-12-25 22:34:14 +03:00
fq/pkg/cli/profile.go

14 lines
195 B
Go
Raw Normal View History

//go:build profile
package cli
import (
"os"
"github.com/wader/fq/internal/profile"
)
func maybeProfile() func() {
return profile.Start(os.Getenv("CPUPROFILE"), os.Getenv("MEMPROFILE"))
}