in backend/analyzer/ThreadDumps.go [121:137]
func getTimeStampFromFirstInnerFile(path string) (threadDumpTime time.Time) {
threadDumpTime = time.Now()
var wg sync.WaitGroup
visit := func(path string, file os.DirEntry, err error) error {
wg.Add(1)
go func() {
defer wg.Done()
if t := getTimeStampFromThreadDumpFilename(path); !t.IsZero() && t.Before(threadDumpTime) {
threadDumpTime = t
}
}()
return nil
}
_ = filepath.WalkDir(path, visit)
wg.Wait()
return threadDumpTime
}