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

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

Issue 1673243002: Count document.createEvent() usage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-executioncontext-to
Patch Set: Leave histograms.xml for later to avoid having to re-enumerate everything again. Created 4 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
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 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 MediaStreamConstraintsNameValue = 1150, 1004 MediaStreamConstraintsNameValue = 1150,
1005 MediaStreamConstraintsFromDictionary = 1151, 1005 MediaStreamConstraintsFromDictionary = 1151,
1006 MediaStreamConstraintsConformant = 1152, 1006 MediaStreamConstraintsConformant = 1152,
1007 CSSSelectorIndirectAdjacent = 1153, 1007 CSSSelectorIndirectAdjacent = 1153,
1008 NodeTreeRoot = 1154, 1008 NodeTreeRoot = 1154,
1009 BluetoothDeviceConnectGATT = 1155, 1009 BluetoothDeviceConnectGATT = 1155,
1010 CreateImageBitmap = 1156, 1010 CreateImageBitmap = 1156,
1011 PresentationConnectionConnectEventListener = 1157, 1011 PresentationConnectionConnectEventListener = 1157,
1012 PresentationConnectionCloseEventListener = 1158, 1012 PresentationConnectionCloseEventListener = 1158,
1013 PresentationConnectionTerminateEventListener = 1159, 1013 PresentationConnectionTerminateEventListener = 1159,
1014 DocumentCreateEventFontFaceSetLoadEvent = 1160,
1015 DocumentCreateEventMediaQueryListEvent = 1161,
1016 DocumentCreateEventAnimationEvent = 1162,
1017 DocumentCreateEventAnimationPlayerEvent = 1163,
1018 DocumentCreateEventApplicationCacheErrorEvent = 1164,
1019 DocumentCreateEventAutocompleteErrorEvent = 1165,
1020 DocumentCreateEventBeforeUnloadEvent = 1166,
1021 DocumentCreateEventClipboardEvent = 1167,
1022 DocumentCreateEventCompositionEvent = 1168,
1023 DocumentCreateEventDragEvent = 1169,
1024 DocumentCreateEventErrorEvent = 1170,
1025 DocumentCreateEventFocusEvent = 1171,
1026 DocumentCreateEventHashChangeEvent = 1172,
1027 DocumentCreateEventMutationEvent = 1173,
1028 DocumentCreateEventPageTransitionEvent = 1174,
1029 DocumentCreateEventPointerEvent = 1175,
1030 DocumentCreateEventPopStateEvent = 1176,
1031 DocumentCreateEventProgressEvent = 1177,
1032 DocumentCreateEventPromiseRejectionEvent = 1178,
1033 DocumentCreateEventRelatedEvent = 1179,
1034 DocumentCreateEventResourceProgressEvent = 1180,
1035 DocumentCreateEventSecurityPolicyViolationEvent = 1181,
1036 DocumentCreateEventTextEvent = 1182,
1037 DocumentCreateEventTransitionEvent = 1183,
1038 DocumentCreateEventWheelEvent = 1184,
1039 DocumentCreateEventMediaKeyEvent = 1185,
1040 DocumentCreateEventTrackEvent = 1186,
1041 DocumentCreateEventWebKitAnimationEvent = 1187,
1042 DocumentCreateEventMutationEvents = 1188,
1043 DocumentCreateEventOrientationEvent = 1189,
1044 DocumentCreateEventSVGEvents = 1190,
1045 DocumentCreateEventWebKitTransitionEvent = 1191,
1046 DocumentCreateEventBeforeInstallPromptEvent = 1192,
1047 DocumentCreateEventSyncEvent = 1193,
1048 DocumentCreateEventDeviceLightEvent = 1194,
1049 DocumentCreateEventDeviceMotionEvent = 1195,
1050 DocumentCreateEventDeviceOrientationEvent = 1196,
1051 DocumentCreateEventMediaEncryptedEvent = 1197,
1052 DocumentCreateEventMediaKeyMessageEvent = 1198,
1053 DocumentCreateEventGamepadEvent = 1199,
1054 DocumentCreateEventGeofencingEvent = 1200,
1055 DocumentCreateEventIDBVersionChangeEvent = 1201,
1056 DocumentCreateEventBlobEvent = 1202,
1057 DocumentCreateEventMediaStreamEvent = 1203,
1058 DocumentCreateEventMediaStreamTrackEvent = 1204,
1059 DocumentCreateEventRTCDTMFToneChangeEvent = 1205,
1060 DocumentCreateEventRTCDataChannelEvent = 1206,
1061 DocumentCreateEventRTCIceCandidateEvent = 1207,
1062 DocumentCreateEventServicePortConnectEvent = 1208,
1063 DocumentCreateEventNotificationEvent = 1209,
1064 DocumentCreateEventPresentationConnectionAvailableEvent = 1210,
1065 DocumentCreateEventPresentationConnectionCloseEvent = 1211,
1066 DocumentCreateEventPushEvent = 1212,
1067 DocumentCreateEventExtendableEvent = 1213,
1068 DocumentCreateEventExtendableMessageEvent = 1214,
1069 DocumentCreateEventFetchEvent = 1215,
1070 DocumentCreateEventInstallEvent = 1216,
1071 DocumentCreateEventServiceWorkerMessageEvent = 1217,
1072 DocumentCreateEventSpeechRecognitionError = 1218,
1073 DocumentCreateEventSpeechRecognitionEvent = 1219,
1074 DocumentCreateEventSpeechSynthesisEvent = 1220,
1075 DocumentCreateEventStorageEvent = 1221,
1076 DocumentCreateEventAudioProcessingEvent = 1222,
1077 DocumentCreateEventOfflineAudioCompletionEvent = 1223,
1078 DocumentCreateEventWebGLContextEvent = 1224,
1079 DocumentCreateEventMIDIConnectionEvent = 1225,
1080 DocumentCreateEventMIDIMessageEvent = 1226,
1081 DocumentCreateEventCloseEvent = 1227,
1082 DocumentCreateEventKeyboardEvents = 1228,
1014 1083
1015 // Add new features immediately above this line. Don't change assigned 1084 // Add new features immediately above this line. Don't change assigned
1016 // numbers of any item, and don't reuse removed slots. 1085 // numbers of any item, and don't reuse removed slots.
1017 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 1086 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
1018 // to update the UMA mapping. 1087 // to update the UMA mapping.
1019 NumberOfFeatures, // This enum value must be last. 1088 NumberOfFeatures, // This enum value must be last.
1020 }; 1089 };
1021 1090
1022 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 1091 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
1023 static void count(const Frame*, Feature); 1092 static void count(const Frame*, Feature);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 1184
1116 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 1185 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
1117 1186
1118 CountBits m_countBits; 1187 CountBits m_countBits;
1119 BitVector m_CSSFeatureBits; 1188 BitVector m_CSSFeatureBits;
1120 }; 1189 };
1121 1190
1122 } // namespace blink 1191 } // namespace blink
1123 1192
1124 #endif // UseCounter_h 1193 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698