Commit Graph

881 Commits

Author SHA1 Message Date
Alessio Placitelli
5329b408e3 Bug 1343855 - Part 2 - Add support for key whitelists in keyed histograms. r=gfritzsche, data-review=francois
MozReview-Commit-ID: H2pE3VivWIX
2017-05-17 04:10:00 +02:00
Michael Layzell
debb94e181 Bug 1380081 - Part 6: Remove test_ThreadHangStats.js, r=chutten
A new test using the new APIs is introduced in a later part. This test no longer
functions as ThreadHangStats is no longer present.

MozReview-Commit-ID: HKmoP2An4GP
2017-08-15 16:35:33 -04:00
Michael Layzell
c115daf948 Bug 1380081 - Part 3: Remove the ThreadHangStats object and related code, r=froydnj
MozReview-Commit-ID: EtrktVmc3vP
2017-08-15 16:34:21 -04:00
Michael Layzell
a477c935be Bug 1365309 - Part 3: Disable test_ThreadHangStats.js on ASAN, a=bustage 2017-08-14 13:47:22 -04:00
Michael Layzell
429ac6cb75 Bug 1365309 - Part 2: re-enable BHR on linux, r=froydnj
MozReview-Commit-ID: BtRZecG4IYA
2017-08-14 10:05:24 -04:00
Sebastian Hengst
0566e2fbfd Backed out changeset 579fd072422e (bug 1365309) 2017-08-11 09:29:08 +02:00
Sebastian Hengst
983d3050d2 Backed out changeset bd63a8fecf00 (bug 1380081) 2017-08-11 09:28:47 +02:00
Sebastian Hengst
b66a07d840 Backed out changeset d77a13ef7a49 (bug 1380081) 2017-08-11 09:28:32 +02:00
Michael Layzell
cb12530be6 Bug 1380081 - Part 6: Remove test_ThreadHangStats.js, r=chutten
A new test using the new APIs is introduced in a later part. This test no longer
functions as ThreadHangStats is no longer present.

MozReview-Commit-ID: HKmoP2An4GP
2017-08-10 15:55:12 -04:00
Michael Layzell
33751c95e2 Bug 1380081 - Part 3: Remove the ThreadHangStats object and related code, r=froydnj
MozReview-Commit-ID: EtrktVmc3vP
2017-08-10 15:55:12 -04:00
Michael Layzell
56a9ba5262 Bug 1365309 - Part 2: re-enable BHR on linux, r=froydnj
MozReview-Commit-ID: BtRZecG4IYA
2017-08-10 15:55:12 -04:00
Kate Ustiuzhanina
2883064fb0 Bug 1379145 - Use Policy in TelemetrySend.jsm to set up/reset custom timeout. r=gfritzsche 2017-08-07 17:51:07 +01:00
Kate Ustiuzhanina
7aaca1f8aa Bug 1379125 - Track dicarded for size pending ping with TelemetryHealthPing. r=gfritzsche 2017-08-07 11:09:05 +01:00
Kate Ustiuzhanina
a37d22b011 Bug 1375008 - Prioritize submission of Health ping. r=gfritzsche 2017-07-27 15:22:08 +01:00
Georg Fritzsche
9385f14125 Bug 1302681 - Part 1: Extend Event Telemetry core for recording from addons. r=dexter
To cut down on complexity, we don't require specifying any expiry versions.
Given that these events will be recorded non-persistently from off-train add-ons, they can be expired by shipping new add-on releases.

We also start to use the new "record on release" terminology here instead of opt-in/opt-out, but are not changing the internal functionality yet.

Technically, this is implemented by keeping a separate registry for the dynamic event information.
Built-in & dynamic events are tracked with separate numeric ids, so introduce a common identifier for both, an EventKey.
For actual event storage, the events are treated the same as built-in events. They are simply bucketed into the 'dynamic' process storage.
This approach ends up duplicating code paths that use the event info, but keeps a single implementation for recording, storage & serialization.
2017-08-03 07:03:00 -04:00
Kate Ustiuzhanina
c5e7ca3c41 Bug 1385417 - Fix sendOnTimeout test. r=gfritzsche 2017-08-04 10:11:38 +01:00
Rajesh Kathiriya
fefc455410 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G
2017-07-25 23:45:41 +05:30
Phil Ringnalda
9faf750b95 Backed out changeset 4446ecfee3d7 (bug 1385417) for Win8 permaorange in test_TelemetryHealthPing.js
MozReview-Commit-ID: 9icHWi2MI0M
2017-07-31 22:19:35 -07:00
Marco Castelluccio
3ab0531d75 Bug 1357517 - Disable pref observer TelemetrySend test on platforms where the crash reporter component is not available (like asan). r=me 2017-07-31 19:28:27 +02:00
Kate Ustiuzhanina
4feb80744a Bug 1385417 - Fix sendOnTimeout test. r=gfritzsche 2017-07-31 14:57:33 +01:00
Marco Castelluccio
fbbb4fbe67 Bug 1357517 - Remove unneeded ternary operators to fix eslint failure. r=me 2017-07-31 16:23:15 +02:00
Marco Castelluccio
ce56433409 Bug 1357517 - TelemetrySend crash annotations are controlled by TelemetryEnabled pref on Android, FhrUploadEnabled on other platforms. r=me 2017-07-31 15:53:10 +02:00
Marco Castelluccio
743dd2e0c8 Bug 1357517 - Remove Preferences.jsm usage from some Telemetry files. r=Dexter 2017-07-31 01:32:31 +02:00
Luciano Italiani
7480cc09d7 Bug 1374671 - Enable the ESLint no-whitespace-before-property rule across mozilla-central. r=standard8
MozReview-Commit-ID: 4WkNg0YrgHx
2017-07-27 23:01:13 -03:00
Kate Ustiuzhanina
011abc4bc1 Bug 1374270 - Support sending health ping on shutdown via PingSender. r=Dexter 2017-07-28 15:49:52 +01:00
John Dorlus
6d7d5bf821 Bug 1382345 - Use callback in test harness r=chutten
Added callback to testcase.py. Made sure callback is callable.
Added callback in test_main_tab_scalars to be the browser restart.
Added callback in test_ping_server_received_ping to None because no callback is needed.

MozReview-Commit-ID: Jf4YHasCXVg
2017-07-26 14:15:14 -04:00
Carsten "Tomcat" Book
3fe83e45ea merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Kate Ustiuzhanina
3af03ea956 Bug 1318297 - Support initial implementation for Health ping. r=gfritzsche
Health ping is supposed to be a small ping for monitoring failures.
Current implementation tracks discarded for size and
send failures.
2017-07-25 16:19:31 +01:00
Andrew Halberstadt
86f21296a2 Bug 1383120 - Enable no-arbitrary-setTimeout eslint rule on xpcshell tests, r=mossop
MozReview-Commit-ID: 6DqLaZ9n5EM
2017-07-26 09:08:07 -04:00
Carsten "Tomcat" Book
e570da6107 Merge mozilla-central to mozilla-inbound 2017-07-25 14:38:43 +02:00
Alejandro Rodriguez Salamanca
2159befb94 Bug 1382192 - Use the prefs defined in TelemetryUtils.jsm in TelemetrySession.jsm. r=dexter 2017-07-24 07:09:00 +02:00
Wes Kocher
c6d00f73af Merge m-c to autoland, a=merge
MozReview-Commit-ID: B7oWq7qfpJ0
2017-07-24 18:13:05 -07:00
Carsten "Tomcat" Book
5089ce5b5c Backed out changeset 2ceb8a5a3e40 (bug 1318297) for xpcshell failures in test_TelemetryHealthPing.js 2017-07-24 16:16:40 +02:00
Chris H-C
d212df97df bug 1366294 - Part 13 - Fix telemetry-using tests. r=Dexter
Some tests were using "secret" APIs to get at telemetry knowledge from various
processes in various ways. Adjust them so that they work with the new ways of
doing things.

MozReview-Commit-ID: 2iBL00HVGyg
2017-07-24 09:52:26 -04:00
Chris H-C
f0f263244d bug 1366294 - Part 10 - Nail down count histogram semantics. r=gfritzsche
Previously we assumed count histograms were always present in payloads.
This was an erroneous assumption as count histograms were only 0 if they were
session histograms, or if they were from subsession histograms from subsessions
_after_ a subsession when they held a non-0 value.

So let's just treat count histograms as normal histograms from now on, without
any of this "sometimes 0" nonsense. This simplifies the code, tests, and our
understanding... and _should_ have few/zero downstream effects since the
existing behaviour was so poorly-understood (though exactly tested).

MozReview-Commit-ID: BH108ksygGw
2017-07-24 09:52:26 -04:00
Chris H-C
481259e468 bug 1366294 - Part 8 - Include a message on telemetry testfails. r=gfritzsche
I just added some short identifiable messages to help identify which part of
the test failed.

MozReview-Commit-ID: 3AX2iucGiRx
2017-07-24 09:52:26 -04:00
Chris H-C
ee663aca64 bug 1366294 - Part 6 - Update test_TelemetryHistograms for new snapshots format r=gfritzsche
MozReview-Commit-ID: FN6y1zTqFt4
2017-07-24 09:52:26 -04:00
Georg Fritzsche
ea803304a2 Bug 1366294 - Part 3 - Refactor TelemetryHistogram storage. r=chutten
Previously we used the base::StatisticsRecorder object for storage by name.
This is keyed by histogram name, which doesn't match our storage reality anymore.
Instead we use a name to refer to a set of histogram instances that record data from different processes, as well as separating session and subsession data.

In this re-write, we instead introduce the following lookup paths (managed in TelemetryHistogram.cpp):
- Main storage:
  - (histogramId, processId, sessionOrSubsession) -> Histogram*
  - (histogramId, processId) -> KeyedHistogram* (this handles subsessions internally)
- Lookup:
  - (histogramName) -> histogramId
  - (HistogramID) -> bool (is recording enabled for this histogram?)

This is wrapped with a few lookup functions.

This also allows us to keep HistogramIDs in the JS histogram instances now, instead of pointers to Histogram instances.
That means Histogram instance life-time management is now properly contained inside TelemetryHistogram.cpp.

MozReview-Commit-ID: 5yijGv7mc89
2017-07-24 09:52:26 -04:00
Kate Ustiuzhanina
17ad6746e6 Bug 1318297 - Support initial implementation for Health ping. r=gfritzsche
Health ping is supposed to be a small ping for monitoring failures.
Current implementation tracks discarded for size and
send failures.
2017-07-13 13:39:09 +01:00
Wes Kocher
e93069274c Merge m-c to inbound, a=merge
MozReview-Commit-ID: Ah48RzFU8Mt
2017-07-21 18:20:46 -07:00
Wes Kocher
c21f63d3ed Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: GYc8r8gnS0j
2017-07-21 18:12:55 -07:00
Sylvestre Ledru
576cac5ec7 Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL
2017-07-15 19:03:04 +02:00
Sebastian Hengst
4b953e4e8b Backed out changeset ed0027bb1187 (bug 1366294) 2017-07-21 15:20:11 +02:00
Sebastian Hengst
26711c7258 Backed out changeset fb911884876f (bug 1366294) 2017-07-21 15:19:56 +02:00
Sebastian Hengst
6e861d7003 Backed out changeset 43fb00c0f96d (bug 1366294) 2017-07-21 15:19:46 +02:00
Sebastian Hengst
45e5725163 Backed out changeset 09043ee913d4 (bug 1366294) 2017-07-21 15:19:36 +02:00
Chris H-C
a70972879a bug 1366294 - Part 10 - Nail down count histogram semantics. r=gfritzsche
Previously we assumed count histograms were always present in payloads.
This was an erroneous assumption as count histograms were only 0 if they were
session histograms, or if they were from subsession histograms from subsessions
_after_ a subsession when they held a non-0 value.

So let's just treat count histograms as normal histograms from now on, without
any of this "sometimes 0" nonsense. This simplifies the code, tests, and our
understanding... and _should_ have few/zero downstream effects since the
existing behaviour was so poorly-understood (though exactly tested).

MozReview-Commit-ID: BH108ksygGw
2017-07-21 08:41:44 -04:00
Chris H-C
d3ca32bdcc bug 1366294 - Part 8 - Include a message on telemetry testfails. r=gfritzsche
I just added some short identifiable messages to help identify which part of
the test failed.

MozReview-Commit-ID: 3AX2iucGiRx
2017-07-21 08:41:44 -04:00
Chris H-C
5b5ad6c99e bug 1366294 - Part 6 - Update test_TelemetryHistograms for new snapshots format r=gfritzsche
MozReview-Commit-ID: FN6y1zTqFt4
2017-07-21 08:41:44 -04:00
Georg Fritzsche
66afc77e6c Bug 1366294 - Part 3 - Refactor TelemetryHistogram storage. r=chutten
Previously we used the base::StatisticsRecorder object for storage by name.
This is keyed by histogram name, which doesn't match our storage reality anymore.
Instead we use a name to refer to a set of histogram instances that record data from different processes, as well as separating session and subsession data.

In this re-write, we instead introduce the following lookup paths (managed in TelemetryHistogram.cpp):
- Main storage:
  - (histogramId, processId, sessionOrSubsession) -> Histogram*
  - (histogramId, processId) -> KeyedHistogram* (this handles subsessions internally)
- Lookup:
  - (histogramName) -> histogramId
  - (HistogramID) -> bool (is recording enabled for this histogram?)

This is wrapped with a few lookup functions.

This also allows us to keep HistogramIDs in the JS histogram instances now, instead of pointers to Histogram instances.
That means Histogram instance life-time management is now properly contained inside TelemetryHistogram.cpp.

MozReview-Commit-ID: 5yijGv7mc89
2017-07-21 08:41:44 -04:00