Commit Graph

881 Commits

Author SHA1 Message Date
Alessio Placitelli
eb7a868f0c Bug 1425909 - Enable adding scalars in artifact builds without rebuilding Firefox. r=chutten,froydnj
This patch enables generating a JSON file that mirrors the scalar definitions
in Scalars.yaml. On local developer builds, this file is loaded when Firefox
starts to register all the scalars. If some change was introduced in the
definition files, the new scalar will be dynamically added.
The JSON definition file will be regenerated every time an artifact build
is performed or the build faster command is invoked.

MozReview-Commit-ID: Do3WjE38aIK
2018-01-18 18:25:01 +01:00
Paul Bone
fffb026c20 Bug 1424760 (Part 7) - Don't insert an extra property into the GC telemetry r=Dexter
The properties limit was being exceeded because the telemetry code itself
added a num_slices property.  The GC already adds a slices property
(containing the number of slices) so I've fixed the issue by removing the
creation of the num_slices property, which will stop this limit from being
exceeded.
2018-02-01 22:24:26 +11:00
Mike Cooper
402ae54218 Bug 1434714 - Support Telemetry pings that are larger than 500,000 bytes after gzip r=gfritzsche
MozReview-Commit-ID: B1Bq5czcpdL
2018-01-31 13:05:21 -08:00
Andrew Swan
7b5e42ff82 Bug 1356331 Remove hotfix from telemetry r=chutten
MozReview-Commit-ID: GmNhsQnZ8Mh
2018-01-04 14:16:56 -08:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Marco Castelluccio
024c8589bd Bug 1351197 - Re-enable TelemetryModules test on Android on Release and Beta. r=gfritzsche 2018-01-29 12:09:14 +01:00
Aditya Bharti
bbba5112ee Bug 1433998 - Allow C++ to accumulate multiple samples into a keyed categorical histogram. r=chutten
Extended the Telemetry::Accumulate() API to accept a string key and a nsTArray of Telemetry::LABELS_*
enums. The typesafety of the class templates ensures there are no label mismatches within the array.

Since there is no singular version for accumulating a single string label into a keyed categorical
histogram, support for the plural version with multiple string labels has not been included here.
2018-01-30 04:30:36 +05:30
Paul Bone
b9102e3777 Bug 1424760 (Part 6) - Fixup the regression in part 1 r=Dexter
I thought that I fixed an off-by-one error in part 1 of this patch series,
but I didn't, I introduced one.  I'm not sure why the original code didn't
work.

This patch also adds more testing (to avoid off-by-ones) and better logging
that may help if the original problem comes back.
2018-01-25 16:17:54 +11:00
Paul Bone
4096c008f6 Bug 1424760 (Part 5) - refactoring in test_TelemetryGC.js r=Dexter 2018-01-25 15:45:39 +11:00
Cosmin Sabou
f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Aditya Bharti
4b0c63ce5b Bug 1428888 - Allow C++ to accumulate multiple samples into a categorical histogram in one call r=chutten
Telemetry::Accumulate now supports two new signatures: Accumulate(HistogramId, nsTArray stringLabels) and
Accumulate(nsTArray enumValues). In the stringLabels case, if the array contains an invalid label, then no
samples are accumulated at all. In the enumValues array case, the class template ensures that we do not have
a mismatch of labels in the array, since the enumValues class is tied to the id of the histogram we want to
accumulate to.
2018-01-28 16:53:40 +05:30
Andreea Pavel
7562acdf0e Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-01-16 11:52:04 +02:00
Paul Bone
43b94688d9 Bug 1424760 (Part 4) - Try to make GC telemetry pings more robust r=gfritzsche
+ Log limitProperties failures.
 + Don't remove all the properties from the main GC object, some are needed
   later, just reduce it to the 7 necessary properties.
2018-01-11 14:43:33 +11:00
Paul Bone
b9cd312703 Bug 1424760 (Part 3) - Add a TelemetryGC unit test r=gfritzsche
toolkit/components/telemetry/tests/unit/test_TelemetryGC.js:
toolkit/components/telemetry/tests/unit/xpcshell.ini:
    Add new unit test.

toolkit/components/telemetry/GCTelemetry.jsm:
    Add an extra method to make testing easier.

js/src/gc/Statistics.cpp:
    Add a reference to the unit test for anyone modifying this code.
2018-01-16 10:46:00 +11:00
Georg Fritzsche
65192db2de Bug 1429510 - Make last shutdown time a scalar. r=chutten 2018-01-15 13:22:56 +01:00
Aaron Klotz
2d4a8289fb Bug 1418131: Part 3 - Add Windows Security Center info to telemetry environment; r=gfritzsche
MozReview-Commit-ID: 3Cw7XIrROTn
2017-11-16 18:10:41 -07:00
Dorel Luca
048a76fe98 Backed out 3 changesets (bug 1418131) for failing Browser-chrome on toolkit/modules/tests/browser/browser_Troubleshoot.js on a CLOSED TREE
Backed out changeset 8962ed624e0c (bug 1418131)
Backed out changeset a287c5db8be6 (bug 1418131)
Backed out changeset a0cf39ae0b3d (bug 1418131)
2018-01-16 03:39:43 +02:00
Aaron Klotz
97b62b51c7 Bug 1418131: Part 3 - Add Windows Security Center info to telemetry environment; r=gfritzsche
MozReview-Commit-ID: 3Cw7XIrROTn
2017-11-16 18:10:41 -07:00
Dorel Luca
fdebf94692 Backed out 3 changesets (bug 1418131) for build bustages on Windows mingw
Backed out changeset 073eb94e1d21 (bug 1418131)
Backed out changeset 625b2d120fd9 (bug 1418131)
Backed out changeset d66bae3d5be1 (bug 1418131)
2018-01-15 23:48:41 +02:00
Aaron Klotz
2af246eb67 Bug 1418131: Part 3 - Add Windows Security Center info to telemetry environment; r=gfritzsche
MozReview-Commit-ID: 3Cw7XIrROTn
2017-11-16 18:10:41 -07:00
Dorel Luca
e99ef2d7a5 Backed out 3 changesets (bug 1418131) for Browser-chrome failure, mochitest failre and build bustage on Windows mingw
Backed out changeset 75591ea83b3c (bug 1418131)
Backed out changeset 73dca2043525 (bug 1418131)
Backed out changeset 5dd6963e2a12 (bug 1418131)
2018-01-15 22:51:31 +02:00
Tiberius Oros
f7d64f28c9 Backed out 1 changesets (bug 1429510)for build bustage on CLOSED TREE
Backed out changeset 809a14e1c12b (bug 1429510)
2018-01-12 22:20:40 +02:00
Georg Fritzsche
277d103ccb Bug 1429510 - Make last shutdown time a scalar. r=chutten,liuche 2018-01-11 06:06:00 +02:00
Aditya Bharti
bfc368ad56 bug 1428885 - Allow C++ to accumulate multiple samples into a keyed histogram in one call r=chutten
Extended the Telemetry::Accumulate API to take a Histogram ID, string key, and a nsTArray<uint32_t> of samples.
Test cases check for linear, count and histograms with a set of allowed keys. Made changes to fix try failures.
2018-01-12 03:26:04 +05:30
Aaron Klotz
e3701f0156 Bug 1418131: Part 3 - Add Windows Security Center info to telemetry environment; r=gfritzsche
MozReview-Commit-ID: 3Cw7XIrROTn
2017-11-16 18:10:41 -07:00
Liang-Heng Chen
dd78158a8a Bug 1422496 - Part 1: make sure install/uninstall complete; r=aswan
MozReview-Commit-ID: DaUuhHNB8Yb
2018-01-09 17:20:00 +02:00
Aditya Bharti
4cfa0ad19f bug 1364043 - Allow C++ to accumulate multiple samples into histograms with one call. r=chutten
Added another Telemetry::Accumulate function that takes a histogram id and an array of samples as arguments.
As of this patch, adding multiple samples to keyed and categorical histograms is not supported.
2018-01-09 02:16:30 +05:30
Alessio Placitelli
74f5cb095d Bug 1417473 - Implement the hybrid content telemetry API. r=chutten,Gijs
This enables whitelisted pages to send messages to the chrome using
asynchronous messaging from the content. This patch only adds the
API and test coverage. The first consumer of the API will be added
as part of bug 1417479.

MozReview-Commit-ID: ESxFFjvhpWA
2017-11-27 11:54:27 +01:00
Csoregi Natalia
7aedfa322e Backed out 3 changesets (bug 1417473) for failing browser_HybridContentTelemetry.js. r=backout on a CLOSED TREE
Backed out changeset 27db7bf978be (bug 1417473)
Backed out changeset a365a5a59ad1 (bug 1417473)
Backed out changeset 443747e39abe (bug 1417473)
2018-01-05 13:45:25 +02:00
Tiberius Oros
14e04dc2e9 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2018-01-05 12:02:07 +02:00
Paul Bone
9a269d4d39 Bug 1422337 follow-up - Fix eslint failures r=eslint-fix 2018-01-05 11:01:21 +11:00
Paul Bone
1fe8829695 Bug 1422337 - Remove this test r=gfritzsche
I think it should be okay that there are no GCs in a telemetry ping.
2018-01-04 17:03:36 +11:00
Alessio Placitelli
9aa344ff1f Bug 1417473 - Implement the hybrid content telemetry API. r=chutten,Gijs
This enables whitelisted pages to send messages to the chrome using
asynchronous messaging from the content. This patch only adds the
API and test coverage. The first consumer of the API will be added
as part of bug 1417479.

MozReview-Commit-ID: ESxFFjvhpWA
2017-11-27 11:54:27 +01:00
Florian Quèze
1838aa9e08 Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Florian Quèze
082ca8b2a3 Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
Noemi Erli
7268d52a18 Merge inbound to mozilla-central r=merge a=merge 2017-11-23 08:05:49 +02:00
Florian Quèze
9d9ac3546e Bug 1226616 - The presence of the general.config.filename preference should be reported on telemetry. r=chutten, data-review=francois 2017-11-25 00:01:17 +01:00
Ryan Leake
d2b7f20af2 Bug 1419761 - Rename 'histogram_tools.py' to 'parse_histograms.py'. r=Dexter
MozReview-Commit-ID: J8wM1OZbMxd
2017-11-23 20:21:09 +00:00
Paul Bone
f8b7cd0cc7 Bug 1412729 (part 4) - Attempt to reduce the size of GCMajor markers r=sfink 2017-11-10 23:19:04 +11:00
Paul Bone
afb3229681 Bug 1412729 (part 3) - Reduce the size of GCSlice markers r=sfink 2017-11-12 13:52:40 +11:00
Fernando
71a2294f53 Bug 1393041 - Refactor and share the telemetry c++ utility functions in gtests. r=dexter 2017-11-14 12:07:00 +01:00
Andrea Marchesini
91e44393ce Bug 1347515 - Get rid of nsIJSON.decodeFromStream, r=qdot 2017-11-10 00:27:22 +01:00
Georg Fritzsche
44eb2bb7e2 Bug 1414638 - Remove expiry_date property for Telemetry events. r=dexter 2017-11-08 12:36:33 +01:00
Georg Fritzsche
2d741966e2 Bug 1408975 - Allow to register new addon events for an existing category. r=dexter 2017-11-08 12:36:33 +01:00
Alessio Placitelli
d9ee9ffc5f Bug 1409323 - Allow to register new addon scalars for an existing category. r=chutten
If we attempt to register again an old dynamic scalar, check if the new
definition makes it expired. If so, update the expiration state and propagate
the new "expired" scalar to the content proecesses.

MozReview-Commit-ID: A2LFN1irw4i
2017-10-17 16:00:12 +02:00
Chris H-C
8a5228ab75 bug 1410907 - Add CanRecord(Pre)Release data to nsITTelemetry r=Dexter
We're starting a shift towards talking about release/prerelease data instead of
base/extended collection. For now this is just a naming change.

At the same time, we can render these attributes read-only, which is nice.

MozReview-Commit-ID: IRuKpzLYW7i
2017-11-03 12:44:23 -04:00
Mark Banner
6067ef1cb5 Bug 1412893 - Change instances of using getService to Services.jsm where possible in toolkit/components - Part 2. r=florian
MozReview-Commit-ID: 44oBXPP88Lc
2017-10-30 17:22:17 +00:00