YARN-2352. FairScheduler: Collect metrics on duration of critical methods that affect performance. (kasha)