diff options
author | primiano <primiano@chromium.org> | 2015-04-28 10:10:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-28 17:11:42 +0000 |
commit | 0842511c459cb46834d49766dede5c7fc4cb0187 (patch) | |
tree | 2e3ceac281f014ec3d24190714097c4186cd1fc2 /components/data_reduction_proxy | |
parent | 98bea9f4a5592fc2fe195e8275e293bd3fdea7af (diff) | |
download | chromium_src-0842511c459cb46834d49766dede5c7fc4cb0187.zip chromium_src-0842511c459cb46834d49766dede5c7fc4cb0187.tar.gz chromium_src-0842511c459cb46834d49766dede5c7fc4cb0187.tar.bz2 |
[tracing] Simplify the MemoryAllocatorDump API
Up until now the API surface of the MemoryAllocatorDump has been
strongly typed, enforcing three basic counters (physical_size,
allocated_objects_count and allocated_objects_size) + arbitrary
extra attributes.
This CL simplifies the MAD interface as follows:
- Remove the two argument (allocator_name, heap_name) in favor of
a simpler and single argument absolute_name (e.g.,
CreateAllocatorDump("v8/isolate1/heap2") instead of
CreateAllocatorDump("v8", "isolate1/heap2"))
- Remove the storngly typed properties in favor of a generic
Add(attribute_name, type, units, value) method.
- Add helper methods MAD.AddScalar() and AddString().
- Rewrite the existing dumpers to use the new simpler API.
- Fix the tests.
BUG=466141
Review URL: https://codereview.chromium.org/1105143003
Cr-Commit-Position: refs/heads/master@{#327310}
Diffstat (limited to 'components/data_reduction_proxy')
0 files changed, 0 insertions, 0 deletions