Commit Graph

277 Commits

Author SHA1 Message Date
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
Alessio Placitelli
5cac0296b4 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
Gabor Krizsanits
d0075a38b2 Bug 1344174 -Add measure for memory distribution among child processes. r=chutten 2017-04-07 12:14:45 +02:00
Alisha
7fd23886d5 Bug 1346200 - Remove B2G code branches from Telemetry JS modules. r=chutten 2017-03-31 17:55:00 -04:00
Georg Fritzsche
d3f8bee9cf Bug 1349324 - Use hourly precision for sessionStartDate & subsessionStartDate. r=dexter 2017-04-05 00:38:10 +07:00
Andrew McCreight
d50a2f1e86 Bug 1354041 - Lazily load TelemetrySend in TelemetrySession. r=gfritzsche
This avoids loading it in content processes.

MozReview-Commit-ID: 9BFLSV0RxpP
2017-04-11 11:59:51 -07:00
Alessio Placitelli
d0dc520ab5 Bug 1336360 - Use the PingSender for sending pings when the browser shuts down. r=chutten,gsvelto
MozReview-Commit-ID: 6bNQs87UQ9m
2017-02-23 14:58:02 +01:00
Gabriele Svelto
4ff26d2d74 Bug 1341349 - Enable sending the crash ping from the crashreporter client only when the overall configuration would allow pings to be sent r=Dexter,gfritzsche
The crashreporter client will send a crash ping autonomously only when it
finds a valid TelemetryServerUrl annotation. This patch makes this annotation
conditional on all the preferences that regulate sending pings (including
official telemetry flags) and prevents it from sending pings before the user
has been notified of the privacy policy.

This is achieved by adding a new _annotateCrashReport() method to the
TelemetrySend obejct which can be called before we've initialized the rest of
the components. It is invoked manually early in the startup process so that
startup crashes are properly annotated, then it's invoked again when the user
is informed of the privacy policy as well as when one of the relevant
preferences is altered. This ensures that the annotations are stripped if the
user disables uploading pings without having to restart Firefox.

MozReview-Commit-ID: 2DKnoWGT1Bp
2017-03-08 15:00:26 +01:00
Carsten "Tomcat" Book
758a758bd5 merge mozilla-inbound to mozilla-central a=merge 2017-03-23 13:44:09 +01:00
djmdev
5157206b3b Bug 1344737 - Update TelemetrySession.jsm to async function & await. r=chutten
Updated Task.async, Task.spawn and yield to async and await.
2017-03-12 11:31:38 +05:30
Jared Wein
5a181760cc Bug 1348068 - Enable the key-spacing rule for eslint and fix the related issues. r=standard8
Running eslint with --fix didn't fix many of the issues. The majority here had to be fixed by hand but a significant majority of the issues were related to a few files that I was able to use find-and-replace with. I regret not making this in to separate commits of the hand-fixes and the fixes from --fix but I don't recall --fix fixing any of the issues.

MozReview-Commit-ID: ANyg2qfo3Qx
2017-03-21 14:29:43 -04:00
djmdev
5e74028e3a Bug 1346714 - Consolidated session change throttling intervals. r=gfritzsche
Used MIN_SUBSESSION_LENGTH_MS in both places.
2017-03-15 21:09:15 +05:30