1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Merge pull request #1031 from shtanko-sv/csvexport-values

Add exporting user values into CSV
This commit is contained in:
Bartosz Taudul 2025-04-17 12:46:18 +02:00 committed by GitHub
commit 753305a797
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -387,6 +387,12 @@ int main(int argc, char** argv)
} }
values[4] = std::to_string(timespan); values[4] = std::to_string(timespan);
values[5] = std::to_string(tId); 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); std::string row = join(values, args.separator);
printf("%s\n", row.data()); printf("%s\n", row.data());