profcollect: Refactor to use a common method for calculating frequency threshold

Change-Id: If05f941bb8397b42c68f44c504a85230a6f10055
Test: presubmit
2 files changed