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

Fix crash caused by not finalizing trace packet

BUG=1102412

Change-Id: I558cbc1b94791354d1b133bf59f5fcb57722387c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2286471Reviewed-by: default avatarEric Seckler <eseckler@chromium.org>
Commit-Queue: ssid <ssid@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786353}
parent 52ba2df5
......@@ -56,6 +56,7 @@ void ReachedCodeDataSource::StopTracing(
// TODO(ssid): add a new packed field to the trace packet proto.
streaming_profile_packet->add_callstack_iid(offset);
}
trace_packet->Finalize();
trace_writer_.reset();
std::move(stop_complete_callback).Run();
}
......
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