gecko-dev/mozglue/baseprofiler/core
Gerald Squelart 782cf5d3ad Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj
In most situations, JSONWriter users already know string lengths (either directly, or through `nsCString` and friends), so we should keep this information through JSONWriter and not recompute it again.
This also allows using JSONWriter with sub-strings (e.g., from a bigger buffer), without having to create null-terminated strings.

Public JSONWriter functions have overloads that accept literal strings.

Differential Revision: https://phabricator.services.mozilla.com/D86192
2020-09-14 02:33:20 +00:00
..
vtune
EHABIStackWalk.cpp
EHABIStackWalk.h
PageInformation.cpp Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj 2020-09-14 02:33:20 +00:00
PageInformation.h
platform-linux-android.cpp
platform-macos.cpp
platform-win32.cpp
platform.cpp Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj 2020-09-14 02:33:20 +00:00
platform.h
PlatformMacros.h
ProfileBuffer.cpp
ProfileBuffer.h
ProfileBufferEntry.cpp Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj 2020-09-14 02:33:20 +00:00
ProfileBufferEntry.h Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj 2020-09-14 02:33:20 +00:00
ProfiledThreadData.cpp Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj 2020-09-14 02:33:20 +00:00
ProfiledThreadData.h
ProfilerBacktrace.cpp
ProfilerBacktrace.h
ProfilerMarkerPayload.cpp Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj 2020-09-14 02:33:20 +00:00
ProfilerMarkers.cpp
ProfilingCategory.cpp
ProfilingStack.cpp
RegisteredThread.cpp
RegisteredThread.h
shared-libraries-linux.cc
shared-libraries-macos.cc
shared-libraries-win32.cc
ThreadInfo.h
VTuneProfiler.cpp
VTuneProfiler.h