Lines Matching refs:power_dict
217 def _tag_with_checkpoint(self, power_dict): argument
245 for i in range(power_dict['sample_count']):
246 curr_time = i * power_dict['sample_duration']
258 power_dict['checkpoint'] = checkpoint_list
416 power_dict = collections.defaultdict(dict, {
422 if power_dict['sample_count'] > 1:
424 power_dict['sample_duration'] = \
425 1.0 * total_duration / power_dict['sample_count']
434 power_dict['data'][domain] = domain_readings[1:]
435 power_dict['average'][domain] = \
436 numpy.average(power_dict['data'][domain])
438 power_dict['unit'][domain] = self._unit
440 power_dict['type'][domain] = self._type
442 self._tag_with_checkpoint(power_dict)
443 return power_dict
499 power_dict = {
508 return power_dict
545 power_dict = super(CPUStatsLoggerDashboard, self)._convert()
547 for rail in power_dict['data']:
549 power_dict['type'][rail] = 'cpufreq_wavg'
550 power_dict['unit'][rail] = 'kilohertz'
552 power_dict['type'][rail] = 'gpufreq_wavg'
553 power_dict['unit'][rail] = 'megahertz'
559 power_dict['type'][rail] = self._split_domain(rail)[0]
560 power_dict['unit'][rail] = 'percent'
562 del power_dict['data'][rail]
563 del power_dict['average'][rail]
564 return power_dict