Commit Graph

238 Commits

Author SHA1 Message Date
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
Sebastian Hengst
42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Sebastian Hengst
f75839c723 Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze
61aabdf237 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze
9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Florian Queze
35cd8ba883 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
Alessio Placitelli
70c97fb2f2 Bug 1354482 - Turn on sending the "shutdown" ping using the pingsender from the second Firefox session. r=chutten,gfritzsche
MozReview-Commit-ID: IEYfziF86mF
2017-04-10 12:51:45 +02:00
Carsten "Tomcat" Book
6d5a053fe2 Backed out changeset cfe47bace342 (bug 1353295) for assertion failures 2017-04-13 09:39:17 +02:00
Wes Kocher
197a1c4128 Merge autoland to central, a=merge CLOSED TREE 2017-04-12 15:13:30 -07:00
Wes Kocher
8313b4a2ea Backed out changeset 0c7702e42f33 (bug 1354482) for windows xpcshell failures a=backout 2017-04-12 10:04:06 -07:00
Pauline
f932df88d6 Bug 1354036 - Removed use of NS_ASSERT() from TelemetrySession.jsm. r=gfritzsche 2017-04-11 18:44:39 +01:00
Chris H-C
79504a7b9d 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