Replace std::map with base::SmallMap in ui::LatencyInfo

The typical number of components per LatencyInfo instance is quite small. Avoid
unnecessary heap allocation by using a SmallMap to store component entries.
This reduces the average browser send time cost per touch or scroll event by
~15us on a Nexus 4, and ~22us on a Galaxy Nexus.

BUG=341613

Review URL: https://codereview.chromium.org/157003005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257740 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 205294bddfb47d6581a9dd961e95cd01ead71cac
1 file changed
tree: 62dc9cb24a184c84462a5776b725b7e57e2821a4
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. ipc/
  6. mojo/
  7. testing/
  8. third_party/
  9. ui/