We should make collecting metrics easier by adding an IDL attribute
https://bugs.webkit.org/show_bug.cgi?id=96837
Reviewed by Kentaro Hara.
Currently it is too hard to set up a good measurement experiment to see
whether we can safely remove a feature (including vendor-prefixed
features). This patch introduces the [V8MeasureAs] IDL attribute to make
that process easier.
When you add the [V8MeasureAs] IDL property to an API, we'll count what
fraction of Page objects used that API.
* Modules/notifications/DOMWindowNotifications.idl:
* bindings/scripts/CodeGeneratorV8.pm:
(GenerateFeatureObservation):
(GenerateNormalAttrGetter):
(GenerateReplaceableAttrSetter):
(GenerateNormalAttrSetter):
(GenerateOverloadedFunctionCallback):
(GenerateFunctionCallback):
(GenerateConstructorCallback):
(GenerateNamedConstructorCallback):
* bindings/scripts/IDLAttributes.txt:
* bindings/scripts/test/TestObj.idl:
* bindings/scripts/test/V8/V8TestObj.cpp:
(WebCore::TestObjV8Internal::testObjAttrAttrGetter):
(WebCore::TestObjV8Internal::testObjAttrAttrSetter):
(WebCore::TestObjV8Internal::objMethodCallback):
(WebCore):
* page/Page.h:
(WebCore::Page::featureObserver):
(Page):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128788 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/GNUmakefile.list.am b/Source/WebCore/GNUmakefile.list.am
index 1f24b73..ca6dabc 100644
--- a/Source/WebCore/GNUmakefile.list.am
+++ b/Source/WebCore/GNUmakefile.list.am
@@ -3968,6 +3968,8 @@
Source/WebCore/page/EventHandler.h \
Source/WebCore/page/EventSource.cpp \
Source/WebCore/page/EventSource.h \
+ Source/WebCore/page/FeatureObserver.cpp \
+ Source/WebCore/page/FeatureObserver.h \
Source/WebCore/page/FocusController.cpp \
Source/WebCore/page/FocusController.h \
Source/WebCore/page/FocusDirection.h \