瀏覽代碼

internal/driver: allow local symbolization with perf path format (#335)

Aleksey Akulovich 7 年之前
父節點
當前提交
ff47fcd4d1
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      internal/driver/fetch.go

+ 1
- 0
internal/driver/fetch.go 查看文件

407
 				if matches, err := filepath.Glob(filepath.Join(path, m.BuildID, "*")); err == nil {
407
 				if matches, err := filepath.Glob(filepath.Join(path, m.BuildID, "*")); err == nil {
408
 					fileNames = append(fileNames, matches...)
408
 					fileNames = append(fileNames, matches...)
409
 				}
409
 				}
410
+				fileNames = append(fileNames, filepath.Join(path, m.File, m.BuildID)) // perf path format
410
 			}
411
 			}
411
 			if m.File != "" {
412
 			if m.File != "" {
412
 				// Try both the basename and the full path, to support the same directory
413
 				// Try both the basename and the full path, to support the same directory