Bug 1952904 - Support flows in StreamPayload r=profiler-reviewers,mstange

Differential Revision: https://phabricator.services.mozilla.com/D240882
This commit is contained in:
Jeff Muizelaar
2025-03-10 15:49:14 +00:00
parent 0f2f23126a
commit f2b8876eb5

View File

@@ -1030,6 +1030,14 @@ inline void StreamPayload<ProfilerString8View>(
const ProfilerString8View& aPayload) {
aWriter.StringProperty(aKey, aPayload);
}
template <>
inline void StreamPayload<Flow>(baseprofiler::SpliceableJSONWriter& aWriter,
const Span<const char> aKey,
const Flow& aPayload) {
aWriter.FlowProperty(aKey, aPayload);
}
} // namespace detail
// This helper class is used by MarkerTypes that want to support the general