Commit 1d4079b3 authored by Leszek Swirski's avatar Leszek Swirski Committed by Commit Bot

[obj-stats] Fix heap-stats label order

Data in the viewer has to be in the same order as the labels.

Change-Id: I2e64fb30ebc0e3585c7b9d364553cb6a5ec1f3cb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1718159
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62921}
parent f9512482
......@@ -88,7 +88,7 @@ class GlobalTimeline extends HTMLElement {
data_set.boxed_double_fields +
data_set.string_data;
const ptr_compr_benefit =
(data_set.smi_fields + data_set.tagged_fields) / 2;
(data_set.inobject_smi_fields + data_set.tagged_fields) / 2;
const ptr_compr_benefit_perc = ptr_compr_benefit / total * 100;
sum_total += total;
sum_ptr_compr_benefit_perc += ptr_compr_benefit_perc;
......@@ -99,8 +99,8 @@ class GlobalTimeline extends HTMLElement {
data.push(ptr_compr_benefit / KB);
data.push(tooltip);
data.push(data_set.embedder_fields / KB);
data.push(data_set.inobject_smi_fields / KB);
data.push(data_set.tagged_fields / KB);
data.push(data_set.inobject_smi_fields / KB);
data.push(data_set.other_raw_fields / KB);
data.push(data_set.unboxed_double_fields / KB);
data.push(data_set.boxed_double_fields / KB);
......
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