Refactor StackSamplingProfiler::SamplingThread to make it more concise

This CL coalesces functions PerformCollectionTask(), RecordSample(), and
ScheduleNextSample() of the SamplingThread class into a new class member
function named RecordSampleTask(). Redundant code is removed.

Bug: 851163
Change-Id: I0ec209a7bebaf295e213ff7e321e52af60465bf8
Reviewed-on: https://chromium-review.googlesource.com/1100047
Reviewed-by: Mike Wittman <wittman@chromium.org>
Commit-Queue: Xi Cheng <chengx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567295}
2 files changed