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

Side by Side Diff: third_party/WebKit/Source/core/frame/UseCounter.h

Issue 1578143002: Thread up UseCounters for a few new metrics from V8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (and propagate extra counters to histograms.xml) Created 4 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 EventDeepPath = 1123, 980 EventDeepPath = 1123,
981 LinkHeaderPreload = 1124, 981 LinkHeaderPreload = 1124,
982 MouseWheelEvent = 1125, 982 MouseWheelEvent = 1125,
983 WheelEvent = 1126, 983 WheelEvent = 1126,
984 MouseWheelAndWheelEvent = 1127, 984 MouseWheelAndWheelEvent = 1127,
985 BodyScrollsInAdditionToViewport = 1128, 985 BodyScrollsInAdditionToViewport = 1128,
986 DocumentDesignModeEnabeld = 1129, 986 DocumentDesignModeEnabeld = 1129,
987 ContentEditableTrue = 1130, 987 ContentEditableTrue = 1130,
988 ContentEditableTrueOnHTML = 1131, 988 ContentEditableTrueOnHTML = 1131,
989 ContentEditablePlainTextOnly = 1132, 989 ContentEditablePlainTextOnly = 1132,
990 V8RegExpPrototypeUnicodeGetter = 1133,
991 V8IntlV8Parse = 1134,
992 V8IntlPattern = 1135,
993 V8IntlResolved = 1136,
994 V8PromiseChain = 1137,
995 V8PromiseAccept = 1138,
996 V8PromiseDefer = 1139,
990 997
991 // Add new features immediately above this line. Don't change assigned 998 // Add new features immediately above this line. Don't change assigned
992 // numbers of any item, and don't reuse removed slots. 999 // numbers of any item, and don't reuse removed slots.
993 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 1000 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
994 // to update the UMA mapping. 1001 // to update the UMA mapping.
995 NumberOfFeatures, // This enum value must be last. 1002 NumberOfFeatures, // This enum value must be last.
996 }; 1003 };
997 1004
998 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 1005 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
999 static void count(const Frame*, Feature); 1006 static void count(const Frame*, Feature);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 1091
1085 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 1092 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
1086 1093
1087 CountBits m_countBits; 1094 CountBits m_countBits;
1088 BitVector m_CSSFeatureBits; 1095 BitVector m_CSSFeatureBits;
1089 }; 1096 };
1090 1097
1091 } // namespace blink 1098 } // namespace blink
1092 1099
1093 #endif // UseCounter_h 1100 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698