aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/filesystemutils.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-04-23 12:39:51 +0200
committerGitHub Enterprise <[email protected]>2026-04-23 12:39:51 +0200
commitacbe46d5f37af01efc3e46398e8af60e4461e68f (patch)
tree24f4fcdf1383fc5969487c575fc07d1650f9d64f /src/zenutil/filesystemutils.cpp
parent5.8.7 (diff)
downloadarchived-zen-acbe46d5f37af01efc3e46398e8af60e4461e68f.tar.xz
archived-zen-acbe46d5f37af01efc3e46398e8af60e4461e68f.zip
trace: declare Region event name fields as AnsiString (#1012)
RegionName and Category on Misc.RegionBeginWithId were declared as uint8[] — a byte array with no Field_String class flag. UE Insights' FEventData::GetString() explicitly requires Field_String and returns false otherwise, so Insights analyzers that check(GetString(...)) fire when reading zen traces. Upstream UE declares these fields as WideString; zen's source strings are std::string_view, so AnsiString is the natural fit and the wire bytes are unchanged (same Field_8 aux stream — only the schema class bit differs). Insights' FString GetString variant accepts either ANSI or WIDE, so analyzers work without change. Zen's own tourist-based analyzer in src/zen/trace/trace_model.cpp reads raw aux bytes via Array<uint8[]> regardless of the schema tag, and its DecodeRegionName already handles both 1-byte and 2-byte widths, so it's unaffected.
Diffstat (limited to 'src/zenutil/filesystemutils.cpp')
0 files changed, 0 insertions, 0 deletions