def generate(self):
        for sensor in self.plugins:
            # update the sensors value periodically
            logger.info('Started thread job for the sensor {0}'.format(sensor))
            job = ThreadJob(sensor.update,self.stop_event,sensor.interval)
            job.start()
Generate the stats using the plugins list periodically
dataset/ETHPy150Open black-perl/ptop/ptop/statistics/statistics.py/Statistics.generate