Make scripts/histogram ignore lines without frame duration
Previously the script would choke on lines generated, for example, by `cargo run`. This just skips lines that don't contain `frame duration:`. Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
parent
4cccb4e3d0
commit
0db9c274aa
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ def parse_log_file(file_path):
|
|||
data = {'measurement': [], 'time': [], 'unit': [], 'log_file': []}
|
||||
with open(file_path, 'r') as file:
|
||||
for line in file:
|
||||
if ':' not in line:
|
||||
if 'duration:' not in line:
|
||||
continue
|
||||
|
||||
parts = line.strip().split(': ')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue