We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a814b5d commit 9f46598Copy full SHA for 9f46598
cmd/profiling.go
@@ -114,6 +114,12 @@ var globalProfilers []profiler
114
func enableProfilers(outputFolder string, profilers []string) error {
115
now := time.Now().Format("2006-01-02T15-04-05")
116
117
+ if _, e := os.Stat(outputFolder); e != nil {
118
+ if e := os.MkdirAll(outputFolder, 0o700); e != nil {
119
+ return e
120
+ }
121
122
+
123
for _, profilerName := range profilers {
124
outputFile := path.Join(outputFolder, profilerName+"."+now)
125
f, e := os.Create(outputFile)
0 commit comments