[Mac] Report total idle wakeups instead of just package exits.

Currently, we report only a subset of idle wakeups in the task manager:
"package idle exits" (essentially a wakeup of the IC that includes the
processor, caches etc; see man powermetrics for details). This is a
useful metric, but it isn't what's shown in Activity Monitor or used
when calculating EXC_RESOURCE RESOURCE_TYPE_WAKEUPS exceptions (see
crbug.com/684051).

This changes |ProcessMetrics::GetIdleWakeupsPerSecond| to report
total wakeups, but maintains the package idle exit calculation
for reporting to UMA (will be in a follow-up CL).

Bug: 649641
Change-Id: I6034f258a101b26a2fd6b4b72708a0682c63b19a
Reviewed-on: https://chromium-review.googlesource.com/702049
Reviewed-by: Mark Mentovai <mark@chromium.org>
Reviewed-by: Jayson Adams <shrike@chromium.org>
Commit-Queue: Leonard Grey <lgrey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#507396}

CrOS-Libchrome-Original-Commit: d1fc0b47a4343bf8376a839b0d75a6ee1ccfe1fb
2 files changed
tree: b99c5d6b977a7a055abc4b81a2f5e1234e984857
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/