Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleResolverStats.cpp

Issue 2707113003: Add "customPropertiesApplied" metric to StyleResolverStats. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolverStats.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 rulesFastRejected = 0; 49 rulesFastRejected = 0;
50 rulesRejected = 0; 50 rulesRejected = 0;
51 rulesMatched = 0; 51 rulesMatched = 0;
52 stylesChanged = 0; 52 stylesChanged = 0;
53 stylesUnchanged = 0; 53 stylesUnchanged = 0;
54 stylesAnimated = 0; 54 stylesAnimated = 0;
55 elementsStyled = 0; 55 elementsStyled = 0;
56 pseudoElementsStyled = 0; 56 pseudoElementsStyled = 0;
57 baseStylesUsed = 0; 57 baseStylesUsed = 0;
58 independentInheritedStylesPropagated = 0; 58 independentInheritedStylesPropagated = 0;
59 customPropertiesApplied = 0;
59 } 60 }
60 61
61 bool StyleResolverStats::allCountersEnabled() const { 62 bool StyleResolverStats::allCountersEnabled() const {
62 bool allCountersEnabled; 63 bool allCountersEnabled;
63 TRACE_EVENT_CATEGORY_GROUP_ENABLED(TRACE_DISABLED_BY_DEFAULT("blink.style"), 64 TRACE_EVENT_CATEGORY_GROUP_ENABLED(TRACE_DISABLED_BY_DEFAULT("blink.style"),
64 &allCountersEnabled); 65 &allCountersEnabled);
65 return allCountersEnabled; 66 return allCountersEnabled;
66 } 67 }
67 68
68 std::unique_ptr<TracedValue> StyleResolverStats::toTracedValue() const { 69 std::unique_ptr<TracedValue> StyleResolverStats::toTracedValue() const {
(...skipping 19 matching lines...) Expand all
88 tracedValue->setInteger("rulesFastRejected", rulesFastRejected); 89 tracedValue->setInteger("rulesFastRejected", rulesFastRejected);
89 tracedValue->setInteger("rulesMatched", rulesMatched); 90 tracedValue->setInteger("rulesMatched", rulesMatched);
90 tracedValue->setInteger("stylesChanged", stylesChanged); 91 tracedValue->setInteger("stylesChanged", stylesChanged);
91 tracedValue->setInteger("stylesUnchanged", stylesUnchanged); 92 tracedValue->setInteger("stylesUnchanged", stylesUnchanged);
92 tracedValue->setInteger("stylesAnimated", stylesAnimated); 93 tracedValue->setInteger("stylesAnimated", stylesAnimated);
93 tracedValue->setInteger("elementsStyled", elementsStyled); 94 tracedValue->setInteger("elementsStyled", elementsStyled);
94 tracedValue->setInteger("pseudoElementsStyled", pseudoElementsStyled); 95 tracedValue->setInteger("pseudoElementsStyled", pseudoElementsStyled);
95 tracedValue->setInteger("baseStylesUsed", baseStylesUsed); 96 tracedValue->setInteger("baseStylesUsed", baseStylesUsed);
96 tracedValue->setInteger("independentInheritedStylesPropagated", 97 tracedValue->setInteger("independentInheritedStylesPropagated",
97 independentInheritedStylesPropagated); 98 independentInheritedStylesPropagated);
99 tracedValue->setInteger("customPropertiesApplied", customPropertiesApplied);
98 return tracedValue; 100 return tracedValue;
99 } 101 }
100 102
101 } // namespace blink 103 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolverStats.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698