зеркало из https://github.com/mozilla/gecko-dev.git
3842370ed8
It's easy to mess up the scoping so that (a) the label is pushed and then immediately popped, and/or (b) the string doesn't live long enough. It's also easy to do a utf16-to-utf8 conversion unnecessarily when the profiler is inactive. This patch splits that macro into three new ones that are harder to mess up. - AUTO_PROFILER_LABEL_DYNAMIC_CSTR: same as current. - AUTO_PROFILER_LABEL_DYNAMIC_NSCSTRING: for nsCStrings. - AUTO_PROFILER_LABEL_DYNAMIC_LOSSY_NSSTRING: for nsStrings. --HG-- extra : rebase_source : 3e2bbec4737b696e1c86579ae54be4cb3186c100 |
||
---|---|---|
.. | ||
ChildProfilerController.h | ||
GeckoProfiler.h | ||
GeckoProfilerReporter.h | ||
ProfilerChild.h | ||
ProfilerMarkerPayload.h | ||
ProfilerParent.h | ||
shared-libraries.h |