github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/adhoc/util/util_darwin.go (about) 1 package util 2 3 import ( 4 "os" 5 "path/filepath" 6 ) 7 8 func dataBaseDirectory() string { 9 homeDir, ok := os.LookupEnv("HOME") 10 if !ok { 11 homeDir = "/" 12 } 13 return filepath.Join(homeDir, ".pyroscope") 14 }