|
@@ -534,7 +534,8 @@ func convertPerfData(perfPath string, ui plugin.UI) (*os.File, error) {
|
534
|
534
|
return nil, err
|
535
|
535
|
}
|
536
|
536
|
deferDeleteTempFile(profile.Name())
|
537
|
|
- cmd := exec.Command("perf_to_profile", perfPath, profile.Name())
|
|
537
|
+ cmd := exec.Command("perf_to_profile", "-i", perfPath, "-o", profile.Name(), "-f")
|
|
538
|
+ cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr
|
538
|
539
|
if err := cmd.Run(); err != nil {
|
539
|
540
|
profile.Close()
|
540
|
541
|
return nil, fmt.Errorf("failed to convert perf.data file. Try github.com/google/perf_data_converter: %v", err)
|