[ Profiler ] Fix CPU sample streaming sending only a single sample block instead of a chain of blocks

A pointer to a single SampleBlockBuffer was being passed in while
building a profile instead of a reference to SampleBlockListProcessor.
This also could lead to a segfault if there were no blocks to process.

TEST=CQ + manual testing in Flutter engine

Change-Id: I1e2903cf718da7b32747553c2ed1efcb78b62c86
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214441
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>

https://dart.googlesource.com/sdk/+/7786183e144df65b5411163caf8abe8b7e93df62
1 file changed
tree: c8f48ac54e831280a6a826c6072f4453666553e3
  1. commits.json