зеркало из https://github.com/mozilla/gecko-dev.git
c4a6f1bac7
`ProfilerStringView::Data()` would return a pointer to the start of the string, but there may not be a null terminator at the end! To reduce the likelihood of misuses, that function has now been removed. Instead, callers must now access the data through `AsSpan` or the `Span` conversion operator (which makes it easy to use with `NS_ConvertUTF16toUTF8` for example). It was not an issue until now, because deserialized string would always be terminated when copied out of the profile buffer, but a following patch will add optimized code where the non-terminated string inside the buffer will be directly pointed at. Differential Revision: https://phabricator.services.mozilla.com/D125027 |
||
---|---|---|
.. | ||
tests | ||
EventCounts.cpp | ||
EventCounts.h | ||
Performance.cpp | ||
Performance.h | ||
PerformanceEntry.cpp | ||
PerformanceEntry.h | ||
PerformanceEventTiming.cpp | ||
PerformanceEventTiming.h | ||
PerformanceMainThread.cpp | ||
PerformanceMainThread.h | ||
PerformanceMark.cpp | ||
PerformanceMark.h | ||
PerformanceMeasure.cpp | ||
PerformanceMeasure.h | ||
PerformanceNavigation.cpp | ||
PerformanceNavigation.h | ||
PerformanceNavigationTiming.cpp | ||
PerformanceNavigationTiming.h | ||
PerformanceObserver.cpp | ||
PerformanceObserver.h | ||
PerformanceObserverEntryList.cpp | ||
PerformanceObserverEntryList.h | ||
PerformancePaintTiming.cpp | ||
PerformancePaintTiming.h | ||
PerformanceResourceTiming.cpp | ||
PerformanceResourceTiming.h | ||
PerformanceServerTiming.cpp | ||
PerformanceServerTiming.h | ||
PerformanceService.cpp | ||
PerformanceService.h | ||
PerformanceStorage.h | ||
PerformanceStorageWorker.cpp | ||
PerformanceStorageWorker.h | ||
PerformanceTiming.cpp | ||
PerformanceTiming.h | ||
PerformanceWorker.cpp | ||
PerformanceWorker.h | ||
moz.build |