mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +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 |
||
---|---|---|
.. | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
painting | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |