forked from mirrors/gecko-dev
* Rename DelayedInit() to Poke() to communicate that it can be called multiple times. The new DelayedInit() is much smaller and only relevant to postpone gathering telemetry until after process startup. * Remove the observer callbacks that responded to cycle collection, replace them with a timer that is created after a task is executed. * Setup the memory telemetry timer regardless of extended telemetry Previously the memory telemetry was collected periodically only when extended telemetry was enabled, and if it wasn't enabled it was collected once (or more if DelayedInit() was called more than once, and it is). This could lead to different biases in the data between release and nightly. * Don't collect telemetry directly in Poke(), always use the timer. * Don't setup the timer if it would do nothing. If release telemetry isn't enabled then the only thing collected is MEMORY_TOTAL and that's only collected on the parent process. So don't setup the timer on content processes. Note that this is not a change in whether data is collected or not, since GatherReports() always ran at least once before this change. Furthermore different settings change whether the telemetry is actually sent or not. Differential Revision: https://phabricator.services.mozilla.com/D209201 |
||
|---|---|---|
| .. | ||
| examples | ||
| loader | ||
| public | ||
| src | ||
| xpconnect | ||
| app.mozbuild | ||
| ffi.configure | ||
| moz.build | ||
| moz.configure | ||
| sub.configure | ||