diff --git a/tools/sgcollect_info b/tools/sgcollect_info index 08f8c8cf2e..4fc9d9a8db 100755 --- a/tools/sgcollect_info +++ b/tools/sgcollect_info @@ -168,7 +168,7 @@ def make_collect_gotool_pprof_tasks(zip_dir, sg_binary_path, sg_url): for format_type in format_types: out_filename = "{0}.{1}".format(profile_type, format_type) dest_path = os.path.join(os.environ["PPROF_TMPDIR"], out_filename) - cmd = "go tool pprof -{0} -seconds=5 {1} {2}/{3}".format( + cmd = 'go tool pprof -{0} -seconds=5 "{1}" {2}/{3}'.format( format_type, sg_binary_path, sg_pprof_url,