mirror of
https://github.com/wader/fq.git
synced 2024-11-23 18:56:52 +03:00
14 lines
195 B
Go
14 lines
195 B
Go
//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"))
|
|
}
|