DescriptionAdded a new CompressedStringDataSink for compressing traces via the trace controller.
Also added a TraceDataEndpoint class that I'm thinking can be used to decouple the creation of the final trace (since there's some special logic in there for adding '{}'s and some specific names like 'traceEvent') from where it gets written. This is used right now by the new BackgroundTracingManager for Slow Reports and Deep Reports, but we could also refactor the existing String and File sinks this way as a follow up CL (WIP here: https://codereview.chromium.org/1002103004/).
Then for Deep Reports we can specify the data sink like so:
TraceController::DisableRecording(
TraceController::CreateCompressedStringSink(
TraceController::CreateFileEndpoint(...)));
Committed: https://crrev.com/329f14fe8729f500bad122cafba31ff075b788dd
Cr-Commit-Position: refs/heads/master@{#326783}
Patch Set 1 : #Patch Set 2 : Added test. #Patch Set 3 : Moved to new file. #Patch Set 4 : Fix win compile and tests. #
Messages
Total messages: 31 (17 generated)
|