Performance instrumentation for Android apps

Collecting performance data for production apps is a difficult problem. Specifically if the goal isn’t to measure one or two flows. The FB team shares the elegant solution they implemented to measure performance while keeping the code base clean and maintainable. Spoiler: ByteCode manipulation. Must read.