зеркало из https://github.com/mozilla/gecko-dev.git
1628f9ba8d
In most calls to `SpliceableJSONWriter::Splice(const char*)`: - The data comes from a `ChunkedJSONWriteFunc` and is copied to a new buffer, which is then copied again through `Write()`. Instead we can copy the data directly from the `ChunkedJSONWriteFunc`; and this is a nice complement to `TakeAndSplice()` below. - Or the length is already known, so we can pass it to a new `Splice(const char*, size_t)`, which forwards it to `Write(const char*, size_t)`, saving one `strlen` call. Differential Revision: https://phabricator.services.mozilla.com/D87703 |
||
---|---|---|
.. | ||
ChildProfilerController.cpp | ||
PProfiler.ipdl | ||
ProfilerChild.cpp | ||
ProfilerIOInterposeObserver.cpp | ||
ProfilerIOInterposeObserver.h | ||
ProfilerParent.cpp | ||
ProfilerTypes.ipdlh | ||
components.conf | ||
nsIProfiler.idl | ||
nsProfiler.cpp | ||
nsProfiler.h | ||
nsProfilerCIID.h | ||
nsProfilerStartParams.cpp | ||
nsProfilerStartParams.h |