Commit 55b59e30 authored by Ross McIlroy's avatar Ross McIlroy Committed by Commit Bot

[RCS] Fix %GetAndResetRuntimeCallStats for worker thread RCS tables.

Change-Id: Ifbe9ac0dc49b9826fb7ea2e81ce8e44401c3dc20
Reviewed-on: https://chromium-review.googlesource.com/1200002Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55593}
parent 29e1d399
......@@ -476,6 +476,12 @@ RUNTIME_FUNCTION(Runtime_IncrementUseCounter) {
RUNTIME_FUNCTION(Runtime_GetAndResetRuntimeCallStats) {
HandleScope scope(isolate);
// Append any worker thread runtime call stats to the main table before
// printing.
isolate->counters()->worker_thread_runtime_call_stats()->AddToMainTable(
isolate->counters()->runtime_call_stats());
if (args.length() == 0) {
// Without arguments, the result is returned as a string.
DCHECK_EQ(0, args.length());
......
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