Merge "profcollect: Refactor to use a common method for calculating frequency threshold" into main