Merge "Refactor ProcessStats." into nyc-dev