README 1.2 KB

123456789101112131415161718192021
  1. This directory contains process-independent code for recording metrics bucketed
  2. by the number of tabs or the number of live tabs.
  3. We consider a tab to be alive (i.e. a live tab) if it is a UI tab (e.g. in a
  4. tabstrip, as opposed to a prerenderer), and it has not been discarded and has
  5. not crashed. Tabs can be discarded on desktop by TabManager to conserve
  6. resources, and tabs crash when the corresponding renderer process is killed,
  7. e.g. due to limited resources (OOM).
  8. Clients of this component must be able to count live tabs. The interface this
  9. component exposes provides a way to help create metrics bucketed by live/ or all
  10. tab count in a consistent manner, but this is dependent on the client knowing
  11. the count. The code in this directory is meant to be shared between processes,
  12. and so we do not count tabs here. The tab count is a browser concept, and it can
  13. be computed there. To record metrics bucketed by tab counts in processes other
  14. than the browser, the tab count would need to be plumbed out of the browser. In
  15. some cases this may be more efficient than plumbing metrics data out of the
  16. process to the browser, which is an alternative.
  17. This component should not have any dependencies other than //base as it
  18. should be able to be used from any other place.