Commit Graph

249 Commits

Author SHA1 Message Date
Dan Banner
5af4450327 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Alessio Placitelli
e24412e896 Bug 1393801 - Enable dynamic scalar registration. f=gfritzsche,r=billm,chutten
MozReview-Commit-ID: JlRk7hLV5QD
2017-08-29 13:05:40 +02:00
Chris H-C
b76441c907 Bug 1391531 - Make TelemetrySession idle callbacks cancellable. r=Dexter
TelemetrySession schedules some activities on idle, to avoid hogging resources.
Sometimes we're forced to handle these situations on a more rigid timeline than
"wait for idle". In those cases we should cancel the idle timeout so it doesn't
double-perform the operations.

Unfortunately idleDispatchToMainThread doesn't have a cancel mechanism, so we
need to bolt one over it.

MozReview-Commit-ID: JpUfb9rK2Od
2017-09-13 13:24:31 -04:00
Kris Maglione
cbac5bbd3b Bug 1391707: Follow-up: Skip idle dispatch during tests in TelemetrySession.jsm for increasing the failure rate of an intermittent. r=me
MozReview-Commit-ID: CT6qLG0edG9
2017-09-11 18:48:53 -07:00
Anthony Miyaguchi
27fa9d8684 Bug 1390095 - Send a duplicate of a users first shutdown ping with pingsender. r=Dexter 2017-09-05 17:49:45 -07:00
Chris H-C
eabcba7afb bug 1376600 - Remove registered(Keyed)Histograms r=Dexter
With the removal of the old addonHistograms, all histograms are now registered.
So removing registered(Keyed)Histograms should be straightforward?

Unfortunately not, as this was how we filtered data based on dataset
(opt-in/opt-out), so a little more fiddling was needed to get C++ to only
serialize dataset-appropriate data (instead of post-facto filtering it in JS).

MozReview-Commit-ID: HDplhmzmzJl
2017-08-22 09:42:09 -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
44ff47a4a4 Bug 1380081 - Part 1: Remove getChildThreadHangs, r=chutten
This is the first part of purging the existing telemetry code for
ThreadHangStats from the tree. All of these features will be replaced with new
code for BHR telemetry in the future.

MozReview-Commit-ID: BhD5zY2LwUR
2017-08-15 16:34:18 -04:00
Wes Kocher
d292002f8c Merge m-c to autoland, a=merge
MozReview-Commit-ID: 2YvHbITn9w3
2017-08-10 18:25:34 -07:00
Kris Maglione
0fb6b2e73c Bug 1388215: Part 3 - Use JIT-friendly defineLazy*Getters methods when defining many lazy imports. r=florian
MozReview-Commit-ID: APoFwUhDFdj
2017-08-09 13:03:36 -07:00
Anthony Miyaguchi
6d8a08b3d0 Bug 1376605 - Refactor process payload assembly. r=gfritzsche 2017-08-07 19:09:04 +02: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
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
Marco Castelluccio
743dd2e0c8 Bug 1357517 - Remove Preferences.jsm usage from some Telemetry files. r=Dexter 2017-07-31 01:32:31 +02:00
Alessio Placitelli
0a2700b5f6 Bug 1381490 - Enable sending the shutdown ping with the pingsender on the first session. r=gfritzsche
This will land behind a preference, initially turned off, with the possibility to easily enable it.

MozReview-Commit-ID: InND8Pv35I1
2017-07-26 05:55:00 +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
Chris H-C
43ee3b33fc bug 1366294 - Part 7 - Use keyed histogram snaphots to build payloads. r=gfritzsche
TelemetrySession's getKeyedHistograms asks for each keyed histogram
individually. This is inefficient and doesn't work well with the storage
refactor.

So, plumb through a subsession keyed histogram snapshot API and convert
TelemetrySession over to using it.

MozReview-Commit-ID: Af9dTqw99UA
2017-07-24 09:52:26 -04:00
Chris H-C
1c9b6f562a bug 1366294 - Part 5 - Send appropriately-structured Telemetry data to JS r=gfritzsche
Previously we were doing bad string manipulation nonsense. Now when asked for
snapshots C++ can return a properly-formated Object tree.

MozReview-Commit-ID: HAvIbgzUvMU
2017-07-24 09:52:26 -04:00
Sebastian Hengst
7327aea819 Backed out changeset f80a1985bca7 (bug 1366294) 2017-07-21 15:20:01 +02:00
Sebastian Hengst
2a03d84910 Backed out changeset ccf043ec6160 (bug 1366294) 2017-07-21 15:19:51 +02:00
Chris H-C
33ff890ee6 bug 1366294 - Part 7 - Use keyed histogram snaphots to build payloads. r=gfritzsche
TelemetrySession's getKeyedHistograms asks for each keyed histogram
individually. This is inefficient and doesn't work well with the storage
refactor.

So, plumb through a subsession keyed histogram snapshot API and convert
TelemetrySession over to using it.

MozReview-Commit-ID: Af9dTqw99UA
2017-07-21 08:41:44 -04:00
Chris H-C
2410a94b1e bug 1366294 - Part 5 - Send appropriately-structured Telemetry data to JS r=gfritzsche
Previously we were doing bad string manipulation nonsense. Now when asked for
snapshots C++ can return a properly-formated Object tree.

MozReview-Commit-ID: HAvIbgzUvMU
2017-07-21 08:41:44 -04:00
Vanessa Gutierrez
ee513e293a Bug 1376942 - Added activeTicks as a scalar. r=dexter,gfritzsche;data-r=francois 2017-07-20 10:09:00 +02:00
Carsten "Tomcat" Book
28fe6b217d merge mozilla-inbound to mozilla-central a=merge 2017-07-06 11:18:05 +02:00
Andreas Tolfsen
0e07d3a964 Bug 1377767 - Fix idle dispatch call to gather memory in Telemetry; r=erahm
The Services.tm.mainThread.idleDispatch API was renamed in
https://bugzilla.mozilla.org/show_bug.cgi?id=1368072 to
Services.tm.idleDispatchToMainThread.

MozReview-Commit-ID: CZdH4DQdvNz
2017-07-02 12:40:27 -04:00
Alessio Placitelli
fe22662008 Bug 1369734 - Spin the scheduler tick on idle after sleep-wake or idle-active cycles. r=chutten,florian
This allows to move it out of the user's way, in case we need to gather
telemetry data to build a daily/aborted-session ping.

MozReview-Commit-ID: BrKZHKOJzqk
2017-06-13 16:18:37 +02:00
Eric Rahm
361654a057 Bug 1340134 - Use idleDispatch for gathering memory statistics. r=chutten
This defers the |gatherMemory| telemetry measurement until we're idle. This
measurement should no longer affect CC times.


MozReview-Commit-ID: DMtAo3K59FV
2017-06-23 15:36:00 -07:00
Nicholas Nethercote
8feeffcee0 Bug 1352575 (part 4) - Remove dom.ipc.plugins.asyncInit.enabled pref. r=jimm.
The feature is in the process of being removed.
2017-04-18 16:56:43 +10:00
Cervantes Yu
bfd63402c1 Bug 1375281 - Part 3: Get "MEMORY_HEAP_ALLOCATED" asynchronously in TelemetrySession.jsm. r=chutten
TelemetrySession.jsm gets "MEMORY_HEAP_ALLOCATED" by calling nsIMemoryReporter::GetHeapAllocatedAsync()
to get the attribute asynchronously using a callback.

MozReview-Commit-ID: 2PjOU68FanK
2017-07-06 11:19:48 +08:00
Florian Quèze
b622c2b081 Bug 1368456 - Remove imports of Promise.jsm from Firefox, r=mconley. 2017-06-23 11:25:18 +02:00
Carsten "Tomcat" Book
568e67b3c6 Backed out changeset f495235291e7 (bug 1369734) backed out for test failures in test_TelemetrySession.js | xpcshell return code: 0 2017-06-21 12:14:05 +02:00
Alessio Placitelli
03e28de90b Bug 1369734 - Spin the scheduler tick on idle after sleep-wake or idle-active cycles. r=chutten,florian
This allows to move it out of the user's way, in case we need to gather
telemetry data to build a daily/aborted-session ping.

MozReview-Commit-ID: BrKZHKOJzqk
2017-06-13 16:18:37 +02:00
Chris H-C
fc38360557 bug 1364502 - Allow GHOST_WINDOWS to be recorded opt-out data-r=bsmedberg r=bsmedberg,mccr8
GHOST_WINDOWS will be used to satisfy Quantum release criteria. As such, we
need release-channel collection.

Near as I can tell the memory manager works just as well in Release as in
pre-release, so this should be all that's necessary.

MozReview-Commit-ID: 1iLJhlgKoVQ
2017-05-19 16:05:46 -04:00
Alejandro Rodriguez
f39fab9e7f Bug 1359801 - Improve keeping track of observer topics in TelemetrySession. r=gfritzsche 2017-05-29 22:06:09 +02:00
Georg Fritzsche
4f20b07ef4 Bug 1361661 - Part 4 - Update TelemetrySession to the new process names in the snapshot. r=dexter
We now consistently use the same process names throughout Telemetry, except for histograms.
2017-05-23 13:48:35 +07:00
Sebastian Hengst
e910503966 Backed out changeset 358765291389 (bug 1361661) 2017-05-22 20:40:12 +02:00
Georg Fritzsche
b6b1456786 Bug 1361661 - Part 4: Update TelemetrySession to the new process names in the snapshot. r=dexter
We now consistently use the same process names throughout Telemetry, except for histograms.
2017-05-22 15:41:55 +07:00
Sebastian Hengst
098a857af3 Backed out changeset b0271d3616db (bug 1361661) 2017-05-22 16:19:16 +02:00
Georg Fritzsche
e57405c293 Bug 1361661 - Part 4: Update TelemetrySession to the new process names in the snapshot. r=dexter
We now consistently use the same process names throughout Telemetry, except for histograms.
2017-05-22 15:41:55 +07:00
Florian Quèze
50b8c6608d Bug 1353542 - script-generated patch to remove .bind(this) calls we no longer need now that generator functions have been replaced with async functions, r=Mossop. 2017-05-12 14:47:41 +02:00
Florian Quèze
ff53eb9a63 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Alessio Placitelli
6bc6b11ec3 Bug 1120370 - Implement the new-profile ping. r=bsmedberg,chutten, data-r=bsmedberg
It schedules the ping to be sent on new profiles after 30 minutes
from the Firefox startup. The ping is eventually sent at shutdown
if the scheduled time wasn't reached.
To reliably prevent sending the ping more than once, the "session-state.json"
file is used to keep track of the "sent" state.

The "new-profile" ping is protected behind a pref, disabled by default
in this patch.

MozReview-Commit-ID: 4g4lPRXe9q6
2017-04-27 09:36:01 +02:00
Alessio Placitelli
85afcfb3ff Bug 1346223 - Remove SessionRecorder.jsm. r=gfritzsche
This patch also moves the activeTicks logic to TelemetrySession.jsm
along with the related test coverage.

MozReview-Commit-ID: 8vXffqo2V85
2017-04-24 16:32:14 +02:00
Florian Queze
6cc0b6e992 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Alessio Placitelli
8d6bf0a0bd Bug 1357745 - Disable the shutdown ping sender. r=gfritzsche
MozReview-Commit-ID: 8HhOYNrxOkn
2017-04-19 16:11:49 +02:00
Chris H-C
a2a550854b bug 1353295 - Remove addonHistograms from Telemetry r=Dexter
addonHistograms isn't being used and has started getting in the way.
So it goes.

Leave the "Addon Histograms" section in about:telemetry for 60 days.
Remove it in bug 1355882

MozReview-Commit-ID: 4lm7ONirofl
2017-04-06 15:31:58 -04:00
Florian Queze
ddf0cda8da Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Florian Queze
451928e614 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze
d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
4cd95d4a02 Backed out changeset 18d45aa984d6 (bug 1355161) 2017-04-14 23:39:23 +02:00