Description[tracing] Clean up the MemoryInfra API surface (1/3)
This patch simplifies the API surface of MemoryInfra switching
attribute names from std::string to char*.
The main goal is to make the dumping fast and predictable memory-wise.
There is no point allowing the attribute names to be arbitrary strings
(read non static "quoted" char* ptrs). That has the only effect of
causing loads of copies and std::string ctors / dtors.
This is part of a multisided dance:
1 In this CL, the new char* overloads are being defined, temporarily side
by side with the old std::string ones.
2 Once Blink is rolled, chromium-side will switch from WebString -> char*.
3 Once landed, blink side can remove the WebString overloads.
BUG=495628, 480500
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196918
Patch Set 1 #
Messages
Total messages: 11 (4 generated)
|
|||||||||||||||||||