Make scripts/histogram ignore lines without frame duration

Thorsten Ball and Antonio created

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>

Change summary

script/histogram | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

script/histogram 🔗

@@ -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(': ')