code refactoring + changes about the way to get the associated threads for a process with the LibpfmSensor