Closed Kagukara closed 1 week ago
ping @AdelKS
Hey can you drag and drop the file vkcube_2024-06-23_19-10-50.csv
? Append .txt
to it so GitHub accepts it : vkcube_2024-06-23_19-10-50.csv.txt
vkcube_2024-06-23_19-10-50.txt
EDIT: Just realised I didn't append but instead replaced. I'll reupload the .csv
with .txt
appended when I get back to my PC.
@flightlessmango it is just that there are extra "header" rows in the csv
files now, which moved the title row that starts with fps
(we look for that one to know when the actual benchmark data starts) past the 4th row, we can look for the fps
line in the first 100
rows instead of the first 4
and that fixes this issue
diff --git a/bin/mangoplot.py b/bin/mangoplot.py
index 7d82b3a..41d81f2 100755
--- a/bin/mangoplot.py
+++ b/bin/mangoplot.py
@@ -195,8 +195,9 @@ class BenchmarkFile:
found_fps_column = False
for row_number, row_content in enumerate(reader):
- if row_number > 4:
- # if we're past the 4th row, break the loop
+ if row_number > 100:
+ # did not find the row that starts with the
+ # 'fps' column up until here. give up.
break
@AdelKS This issue stems from enabling the option log_versioning
.
It has more information than the usual one, but it's not fully supported every where, like in mangoplot and on flightlessmango.com.
I would recommend we support both of them instead
Hey @flightlessmango yeah the patch I attached will make the code work with any mangohud CSV file who has the row that starts with the fps
colum be anywhere in the first 100 rows, and then assumes every row after that to be actual data.
The patch above works for me.
Although I did have to edit this down from 10000
to 5000
to view shorter readings.
https://github.com/flightlessmango/MangoHud/blob/8a31b967669576268d09e8efc604108c28ab3d87/bin/mangoplot.py#L344
@AdelKS thanks! It's fixed here 6c665653ba28e9296e0f89d07faceeb859f52872
Describe the bug When trying to use
mangoplot
with the logging files produced frommangohud
,mangoplot
can't read them.List relevant hardware/software information
To Reproduce Steps to reproduce the behaviour:
mangoplot ~/path/to/csv/folder
~/path/to/csv/files
with location to your folder with the .csv files.Expected behaviour For
mangoplot
to read the .csv filesmangohud
produces from logging.