refactoring: add a method for computing the cpu process usage in the OSHelper