зеркало из https://github.com/mozilla/gecko-dev.git
97c5d40384
This adds two AUTO_PROFILER_LABEL_DYNAMIC_... macros and updates select usages of the old macros to use the new ones. These new macros cause the dynamic string of the label to be included in BHR stacks. We don't want to do this all of the time, as in many cases we may not be interested enough in the dynamic string or it may be sensitive information, but it is rather important information for certain cases. This uses the same buffer that we use for the strings for JS frames, and if we fail to fit into that buffer we just append the raw label. If the string is too long for our static buffer (128 bytes), we just leave it truncated, as it should be stable and we may be able to infer from the truncated form what the full form would be. Differential Revision: https://phabricator.services.mozilla.com/D51665 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
core | ||
gecko | ||
lul | ||
public | ||
rust-helper | ||
tasktracer | ||
tests | ||
moz.build |