'Get GPU stats'

def get_device_stats(self):

    stats = []
    for (index, device_handle) in enumerate(self.device_handles):
        device_stats = {}
        device_stats['key'] = self.get_key()
        device_stats['gpu_id'] = index
        device_stats['name'] = get_device_name(device_handle)
        device_stats['mem'] = get_mem(device_handle)
        device_stats['proc'] = get_proc(device_handle)
        stats.append(device_stats)
    return stats
