Commit ba7f9f05 authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

Remove stats for style sharing.

Style sharing code is removed and these stats will always be 0.

Bug: 721517
Change-Id: Iae76778bd564ad22645d3d14709c1d8d13d796c6
Reviewed-on: https://chromium-review.googlesource.com/595744Reviewed-by: default avatarnainar <nainar@chromium.org>
Commit-Queue: Rune Lillesveen <rune@opera.com>
Cr-Commit-Position: refs/heads/master@{#490984}
parent 581d1dd3
......@@ -35,13 +35,6 @@
namespace blink {
void StyleResolverStats::Reset() {
shared_style_lookups = 0;
shared_style_candidates = 0;
shared_style_found = 0;
shared_style_missed = 0;
shared_style_rejected_by_uncommon_attribute_rules = 0;
shared_style_rejected_by_sibling_rules = 0;
shared_style_rejected_by_parent = 0;
matched_property_apply = 0;
matched_property_cache_hit = 0;
matched_property_cache_inherited_hit = 0;
......@@ -59,26 +52,8 @@ void StyleResolverStats::Reset() {
custom_properties_applied = 0;
}
bool StyleResolverStats::AllCountersEnabled() const {
bool all_counters_enabled;
TRACE_EVENT_CATEGORY_GROUP_ENABLED(TRACE_DISABLED_BY_DEFAULT("blink.style"),
&all_counters_enabled);
return all_counters_enabled;
}
std::unique_ptr<TracedValue> StyleResolverStats::ToTracedValue() const {
std::unique_ptr<TracedValue> traced_value = TracedValue::Create();
traced_value->SetInteger("sharedStyleLookups", shared_style_lookups);
traced_value->SetInteger("sharedStyleCandidates", shared_style_candidates);
traced_value->SetInteger("sharedStyleFound", shared_style_found);
if (AllCountersEnabled())
traced_value->SetInteger("sharedStyleMissed", shared_style_missed);
traced_value->SetInteger("sharedStyleRejectedByUncommonAttributeRules",
shared_style_rejected_by_uncommon_attribute_rules);
traced_value->SetInteger("sharedStyleRejectedBySiblingRules",
shared_style_rejected_by_sibling_rules);
traced_value->SetInteger("sharedStyleRejectedByParent",
shared_style_rejected_by_parent);
traced_value->SetInteger("matchedPropertyApply", matched_property_apply);
traced_value->SetInteger("matchedPropertyCacheHit",
matched_property_cache_hit);
......
......@@ -47,16 +47,8 @@ class StyleResolverStats {
}
void Reset();
bool AllCountersEnabled() const;
std::unique_ptr<TracedValue> ToTracedValue() const;
unsigned shared_style_lookups;
unsigned shared_style_candidates;
unsigned shared_style_found;
unsigned shared_style_missed;
unsigned shared_style_rejected_by_uncommon_attribute_rules;
unsigned shared_style_rejected_by_sibling_rules;
unsigned shared_style_rejected_by_parent;
unsigned matched_property_apply;
unsigned matched_property_cache_hit;
unsigned matched_property_cache_inherited_hit;
......
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