gecko-dev/ipc
Georg Fritzsche c7cb5fcaa6 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-19 14:27:06 -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-19 14:27:06 -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 1333460 - add BUG_COMPONENT to ipc/* files. r=billm 2017-01-25 06:17:10 -05:00
glue Merge m-c to inbound, a=merge 2017-07-12 18:26:46 -07:00
ipdl Bug 1364563 - Add a path for content process only device reset. r=dvander 2017-07-18 23:09:00 -04:00
mscom Bug 1379643: When running under sandbox level >= 3, parent should retain IStream of marshaled interface to be destroyed later; r=jimm 2017-07-19 12:07:45 -06:00
ril Bug 1333460 - add BUG_COMPONENT to ipc/* files. r=billm 2017-01-25 06:17:10 -05: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