| Commit-Queue | +1 |
Joe MasonReview note: the only significant changes are in
base/
media/base/
tools/metrics/
services/resource_coordinator/public/cpp/memory_instrumentation/tracing_integration_unittest.cc
third_party/blink/renderer/platform/media/web_media_player_impl.ccThe others are all just changing strings to fit the histogram format.
etiennep, can you review the above files? I'll send the rest of the changes to individual OWNER's to make sure the specific new names for MemoryDumpProviders don't have side effects (eg. if there are analysis scripts that use the old names).
Actually, I'm going to simplify this by removing the name changes.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
Joe MasonReview note: the only significant changes are in
base/
media/base/
tools/metrics/
services/resource_coordinator/public/cpp/memory_instrumentation/tracing_integration_unittest.cc
third_party/blink/renderer/platform/media/web_media_player_impl.ccThe others are all just changing strings to fit the histogram format.
etiennep, can you review the above files? I'll send the rest of the changes to individual OWNER's to make sure the specific new names for MemoryDumpProviders don't have side effects (eg. if there are analysis scripts that use the old names).
Actually, I'm going to simplify this by removing the name changes.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// The names of dump providers allowed to perform background tracing. DumpIt sounds like you will be using this allow list to also report UMA metrics, so update the description to reflect that?
constexpr auto kDumpProviderAllowlist =kMemoryDumpProviderNameAllowList is now generated by generate_allowlist_from_histograms_file, can that replace kDumpProviderAllowlist entirely (or at list auto generate a flat_set from kMemoryDumpProviderNameAllowList list)?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// The names of dump providers allowed to perform background tracing. DumpIt sounds like you will be using this allow list to also report UMA metrics, so update the description to reflect that?
No, I don't plan to change the usage of this. I only changed it to take `Name` instead of `string` to provide better compile-time safety for the existing code, now that it's possible.
constexpr auto kDumpProviderAllowlist =kMemoryDumpProviderNameAllowList is now generated by generate_allowlist_from_histograms_file, can that replace kDumpProviderAllowlist entirely (or at list auto generate a flat_set from kMemoryDumpProviderNameAllowList list)?
No, this is a subset of providers that are allowed to run in the background, so it still needs to be a manually maintained list.
`kMemoryDumpProviderNameAllowList` is a list of strings that are allowed to be used as MemoryDumpProvider names. It's a coincidence that both vars are named "AllowList".
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
constexpr auto kDumpProviderAllowlist =Joe MasonkMemoryDumpProviderNameAllowList is now generated by generate_allowlist_from_histograms_file, can that replace kDumpProviderAllowlist entirely (or at list auto generate a flat_set from kMemoryDumpProviderNameAllowList list)?
No, this is a subset of providers that are allowed to run in the background, so it still needs to be a manually maintained list.
`kMemoryDumpProviderNameAllowList` is a list of strings that are allowed to be used as MemoryDumpProvider names. It's a coincidence that both vars are named "AllowList".
It looks like this is dead code. I'll double-check on that and remove it in a followup. In the meantime I reverted the changes in this file to avoid churn.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
20 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
Enforce that MemoryDumpProvider names are histogram variants
To prepare for per-MemoryDumpProvider metrics, use
generate_allowlist_from_histograms_file to enforce that the name string
passed to a MemoryDumpProvider matches a variant tag defined in
histograms.xml. The variant tag check is done at compile-time by a new
MemoryDumpProvider::Name class with a consteval constructor, inspired by
sql::Database::Tag.
Adds variants for all existing names to histograms.xml, with ":"
characters changed to "_". Follow-up patches will add metrics that use
these variants.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
This caused orderfile bot failures (see http://b/470070622), adding Orderfile here: https://crrev.com/c/7277544
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |