1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-03 06:03:51 +00:00

Add exporting user values into CSV

This commit is contained in:
Sergey Shtanko 2025-04-17 11:11:02 +01:00
parent 1fc7c9f160
commit 0039895398

View File

@ -387,6 +387,12 @@ int main(int argc, char** argv)
}
values[4] = std::to_string(timespan);
values[5] = std::to_string(tId);
if (worker.HasZoneExtra(*zone_event)) {
const auto& text = worker.GetZoneExtra(*zone_event).text;
if (text.Active()) {
values[6] = worker.GetString(text);
}
}
std::string row = join(values, args.separator);
printf("%s\n", row.data());