From 272c69fcfa298cf34c360564ca4c1d58bfcf4cd2 Mon Sep 17 00:00:00 2001
From: Benjamin Lee <benjamin.lee@collabora.com>
Date: Tue, 4 Mar 2025 17:56:15 -0800
Subject: [PATCH] report.py: handle float stats

Panfrost emits cycle counts as floats, which would be read as strings
rather than numbers by the previous parsing logic.
---
 report.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/report.py b/report.py
index aa08eb5..fe03362 100755
--- a/report.py
+++ b/report.py
@@ -77,8 +77,8 @@ def get_results(filename, args):
                 (spills, fills) = val.split(':')
                 result_group['spills'] = int(spills)
                 result_group['fills'] = int(fills)
-            elif val.isnumeric():
-                result_group[name] = int(val)
+            elif val.replace('.', '').isnumeric():
+                result_group[name] = float(val)
             else:
                 result_group[name] = val
 
-- 
GitLab