gecko-dev/ipc
Georg Fritzsche 3a649263e4 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
..
app Bug 1367487: Change bundle name (CFBundleName) of content process on OSX/macOS to differentiate it from the Firefox bundle name. r=mstange,ted 2017-06-05 16:08:24 -04:00
chromium Bug 1366294 - Part 3 - Refactor TelemetryHistogram storage. r=chutten 2017-07-24 09:52:26 -04:00
contentproc Bug 1332530 - Move GMPLoader code out of plugin-container and back into XUL. r=gerald 2017-01-19 15:39:03 +13:00
dbus Bug 1382099 - Remove MOZ_WIDGET_GONK from ipc/. r=jld. 2017-07-21 10:45:49 +10:00
glue Bug 1380659 - Introduce code coverage component to dump/reset coverage counters. r=erahm 2017-07-14 10:58:56 +02:00
ipdl Bug 1380974 - Use custom size for small frequent messages. r=billm 2017-07-20 11:37:09 +08:00
mscom Bug 1381618: Make mscom::AgileReference::mIid be an IID instead of REFIID; r=jimm 2017-07-17 14:35:58 -06:00
ril Bug 1382099 - Remove MOZ_WIDGET_GONK from ipc/. r=jld. 2017-07-21 10:45:49 +10:00
testshell Bug 1342032 - Remove useless a "using" declaration in TestShellParent.cpp r=bholley 2017-02-23 14:24:48 +01:00
moz.build Bug 1357323 - Remove support for gonk in the build system. r=gps 2017-04-18 16:56:09 +09:00
pull-chromium.py