Bug 1272501 - Add Telemetry to the Blink/Webkit FileSystem API - part 1, r=smaug
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 28 Jun 2016 18:02:13 +0200
changeset 302969 b65ae48153f6e6dd5db28019e2f115ba1ef91d76
parent 302968 80a1f6aa0e72859ae0d88dedea85dec4d1844af2
child 302970 f09c9e7c842d251a275874d10b377479d6bcc726
push id30379
push usercbook@mozilla.com
push dateWed, 29 Jun 2016 14:13:35 +0000
treeherdermozilla-central@b69a5bbb5e40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1272501
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1272501 - Add Telemetry to the Blink/Webkit FileSystem API - part 1, r=smaug
dom/html/HTMLInputElement.cpp
toolkit/components/telemetry/Histograms.json
--- a/dom/html/HTMLInputElement.cpp
+++ b/dom/html/HTMLInputElement.cpp
@@ -8374,15 +8374,16 @@ HTMLInputElement::UpdateEntries(const ns
   fs->CreateRoot(entries);
 
   mEntries.SwapElements(entries);
 }
 
 void
 HTMLInputElement::GetWebkitEntries(nsTArray<RefPtr<Entry>>& aSequence)
 {
+  Telemetry::Accumulate(Telemetry::BLINK_FILESYSTEM_USED, true);
   aSequence.AppendElements(mEntries);
 }
 
 } // namespace dom
 } // namespace mozilla
 
 #undef NS_ORIGINAL_CHECKED_VALUE
--- a/toolkit/components/telemetry/Histograms.json
+++ b/toolkit/components/telemetry/Histograms.json
@@ -10893,10 +10893,18 @@
   },
   "XHR_IN_WORKER": {
     "alert_emails": ["amarchesini@mozilla.com"],
     "expires_in_version": "never",
     "kind": "count",
     "bug_numbers": [1280229],
     "description": "Number of the use of XHR in workers.",
     "releaseChannelCollection": "opt-out"
+  },
+  "BLINK_FILESYSTEM_USED": {
+    "alert_emails": ["amarchesini@mozilla.com"],
+    "expires_in_version": "never",
+    "kind": "boolean",
+    "bug_numbers": [1272501],
+    "releaseChannelCollection": "opt-out",
+    "description": "Webkit/Blink filesystem used"
   }
 }