Commit e8d89eb7 authored by ssid's avatar ssid Committed by Commit Bot

memory-infra: Flush trace writer when Flush is called

The memory infra proto writer will flush the trace writer when
flush is called.

Change-Id: I47d9d287c339b513ff5a5b492640c0df3482573d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2557880Reviewed-by: default avatarEric Seckler <eseckler@chromium.org>
Commit-Queue: ssid <ssid@chromium.org>
Cr-Commit-Position: refs/heads/master@{#830650}
parent 336ca9d4
...@@ -156,7 +156,11 @@ void TracingObserverProto::StopTracing( ...@@ -156,7 +156,11 @@ void TracingObserverProto::StopTracing(
} }
void TracingObserverProto::Flush( void TracingObserverProto::Flush(
base::RepeatingClosure flush_complete_callback) {} base::RepeatingClosure flush_complete_callback) {
base::AutoLock lock(producer_lock_);
if (trace_writer_)
trace_writer_->Flush();
}
void TracingObserverProto::MemoryMapsAsProtoInto( void TracingObserverProto::MemoryMapsAsProtoInto(
const std::vector<mojom::VmRegionPtr>& memory_maps, const std::vector<mojom::VmRegionPtr>& memory_maps,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment