Bug 838527 - Generic app startup perf measurement
(cherry picked from commit e184b751c191fd132326e7afdd3b379834d92f02)