[blink] Throw exception when profiler->StartProfiling() returns error status
- cpu_profiler_->StartProfiling() now returns a status enum, of either kStarted, kAlreadyStarted, or kErrorTooManyProfilers. This change throws an exception and returns a nullptr when either kAlreadyStarted or kErrorTooManyProfilers is returned R=acomminos@fb.com, npm@chromium.org, petermarshall@chromium.org, ulan@chromium.org Change-Id: Ie9c6df3c836119064c30fffc54ee7f21f34d9eb1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2549465Reviewed-by:Nicolás Peña Moreno <npm@chromium.org> Reviewed-by:
Ulan Degenbaev <ulan@chromium.org> Reviewed-by:
Peter Marshall <petermarshall@chromium.org> Commit-Queue: Nicolas Dubus <nicodubus@fb.com> Cr-Commit-Position: refs/heads/master@{#833852}
Showing
Please register or sign in to comment