This writes timeline data to a .json file, which can be examined later to find likely candidates for optimization.