Meta Oct 30, 2017

Battery Instrumentation at Facebook

Article Summary

Facebook was flying blind on battery drain across a billion devices. User-facing battery percentage? Too noisy, too coarse, and deliberately inaccurate by design.

Three engineers from Facebook's New York team break down their production battery instrumentation system for iOS and Android. They explain why traditional profiling tools fail at scale and how they built a modeling approach that catches regressions before they ship.

Key Takeaways

Critical Insight

Facebook built a component-level battery monitoring system that models energy drain without physical noise, catching regressions in hours instead of relying on user complaints.

They open-sourced BatteryMetrix, and there's a surprising culprit draining 30% CPU while doing absolutely nothing visible to users.

Recent from Meta

Related Articles