Flutter Engine
The Flutter Engine
Variables
scale_cpu Namespace Reference

Variables

 ADB = sys.argv[1]
 
 target_percent = float(sys.argv[2])
 
 cpu = int(sys.argv[3])
 
 log = subprocess.check_output([ADB, 'root']).decode('utf-8')
 
string root = '/sys/devices/system/cpu/cpu%d/cpufreq' %cpu
 
 available_freqs
 
 maxfreq = available_freqs[-1]
 
 target = int(round(maxfreq * target_percent))
 
 freq = maxfreq
 
 actual_freq
 

Variable Documentation

◆ actual_freq

scale_cpu.actual_freq
Initial value:
1= subprocess.check_output([ADB, 'shell', 'cat '
2 '%s/scaling_cur_freq' % root]).decode('utf-8').strip()
static DecodeResult decode(std::string path)
Definition: png_codec.cpp:124

Definition at line 55 of file scale_cpu.py.

◆ ADB

scale_cpu.ADB = sys.argv[1]

Definition at line 11 of file scale_cpu.py.

◆ available_freqs

scale_cpu.available_freqs
Initial value:
1= subprocess.check_output([ADB, 'shell',
2 'cat %s/scaling_available_frequencies' % root]).decode('utf-8')

Definition at line 23 of file scale_cpu.py.

◆ cpu

scale_cpu.cpu = int(sys.argv[3])

Definition at line 13 of file scale_cpu.py.

◆ freq

scale_cpu.freq = maxfreq

Definition at line 36 of file scale_cpu.py.

◆ log

scale_cpu.log = subprocess.check_output([ADB, 'root']).decode('utf-8')

Definition at line 14 of file scale_cpu.py.

◆ maxfreq

scale_cpu.maxfreq = available_freqs[-1]

Definition at line 34 of file scale_cpu.py.

◆ root

string scale_cpu.root = '/sys/devices/system/cpu/cpu%d/cpufreq' %cpu

Definition at line 20 of file scale_cpu.py.

◆ target

scale_cpu.target = int(round(maxfreq * target_percent))

Definition at line 35 of file scale_cpu.py.

◆ target_percent

scale_cpu.target_percent = float(sys.argv[2])

Definition at line 12 of file scale_cpu.py.