Skip to content

Commit d0a62bf

Browse files
author
chengduo
authored
Merge pull request #10737 from chengduoZH/fix_timeline
Fix timeline for the number of profile is one
2 parents 651c934 + 3d1953d commit d0a62bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/timeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def generate_chrome_trace(self):
171171

172172
profile_paths = profile_path.split(',')
173173
profile_dict = dict()
174-
if len(profile_path) == 1:
174+
if len(profile_paths) == 1:
175175
with open(profile_path, 'r') as f:
176176
profile_s = f.read()
177177
profile_pb = profiler_pb2.Profile()

0 commit comments

Comments
 (0)