mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
b23fb68ae3
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 : 59f77df0124249bfd11fee3585420a17b4201d37 |
||
---|---|---|
.. | ||
crashtests | ||
idl | ||
loader | ||
public | ||
shell | ||
src | ||
tests | ||
wrappers | ||
moz.build |