jtop/core/tegra_parse.py
def CPUS(text):
    """ Parse CPU information and extract status

        CPU [X%,Y%, , ]@Z or CPU [X%@Z, Y%@Z,...]
        X and Y are rough approximations based on time spent
        in the system idle process as reported by the Linux kernel in /proc/stat.
        X = Load statistics for each of the CPU cores relative to the
            current running frequency Z, or 'off' in case a core is currently powered down.
        Y = Load statistics for each of the CPU cores relative to the
            current running frequency Z, or 'off' in case a core is currently powered down.
        Z = CPU frequency in megahertz. Goes up or down dynamically depending on the CPU workload.
    """
    match = CPU_RE.search(text)
    cpus = {}
    if match:
        # Extract
        cpus_list = match.group(1).split(',')
        for idx, cpu_str in enumerate(cpus_list):
            # Set name CPU
            name = 'CPU' + str(idx + 1)
            cpus[name] = {}
            # status
            if 'off' == cpu_str:
                continue
            # Add data CPU
            val = val_freq(cpu_str)
            cpus[name].update(val)
    return cpus
 Parse CPU information and extract status

        CPU [X%,Y%, , ]@Z or CPU [X%@Z, Y%@Z,...]
        X and Y are rough approximations based on time spent
        in the system idle process as reported by the Linux kernel in /proc/stat.
        X = Load statistics for each of the CPU cores relative to the
            current running frequency Z, or 'off' in case a core is currently powered down.
        Y = Load statistics for each of the CPU cores relative to the
            current running frequency Z, or 'off' in case a core is currently powered down.
        Z = CPU frequency in megahertz. Goes up or down dynamically depending on the CPU workload.
    
Parse CPU information and extract status
CPU [X%,Y%, , ]@Z or CPU [X%@Z, Y%@Z,...]
X and Y are rough approximations based on time spent
in the system idle process as reported by the Linux kernel in /proc/stat.
X = Load statistics for each of the CPU cores relative to the
current running frequency Z, or 'off' in case a core is currently powered down.
Y = Load statistics for each of the CPU cores relative to the
current running frequency Z, or 'off' in case a core is currently powered down.
Z = CPU frequency in megahertz. Goes up or down dynamically depending on the CPU workload.
Parse CPU information and extract status CPU [ X% Y% ] @Z or CPU [ X%@Z Y%@Z ... ] X and Y are rough approximations based on time spent in the system idle process as reported by the Linux kernel in / proc / stat . X = Load statistics for each of the CPU cores relative to the current running frequency Z or ' off ' in case a core is currently powered down . Y = Load statistics for each of the CPU cores relative to the current running frequency Z or ' off ' in case a core is currently powered down . Z = CPU frequency in megahertz . Goes up or down dynamically depending on the CPU workload .
def CPUS(text):
    match = CPU_RE.search(text)
    cpus = {}
    if match:
        cpus_list = match.group(1).split(',')
        for idx, cpu_str in enumerate(cpus_list):
            name = 'CPU' + str(idx + 1)
            cpus[name] = {}
            if 'off' == cpu_str:
                continue
            val = val_freq(cpu_str)
            cpus[name].update(val)
    return cpus
def CPUS ( text ) : match = CPU_RE . search ( text ) cpus = { } if match : cpus_list = match . group ( 1 ) . split ( ',' ) for idx , cpu_str in enumerate ( cpus_list ) : name = 'CPU' + str ( idx + 1 ) cpus [ name ] = { } if 'off' == cpu_str : continue val = val_freq ( cpu_str ) cpus [ name ] . update ( val ) return cpus
Parse CPU information and extract status
CPU [X%,Y%, , ]@Z or CPU [X%@Z, Y%@Z,...]
X and Y are rough approximations based on time spent
in the system idle process as reported by the Linux kernel in /proc/stat.
Parse CPU information and extract status CPU [ X% Y% ] @Z or CPU [ X%@Z Y%@Z ... ] X and Y are rough approximations based on time spent in the system idle process as reported by the Linux kernel in / proc / stat .
""" Parse CPU information and extract status

        CPU [X%,Y%, , ]@Z or CPU [X%@Z, Y%@Z,...]
        X and Y are rough approximations based on time spent
        in the system idle process as reported by the Linux kernel in /proc/stat.
        X = Load statistics for each of the CPU cores relative to the
            current running frequency Z, or 'off' in case a core is currently powered down.
        Y = Load statistics for each of the CPU cores relative to the
            current running frequency Z, or 'off' in case a core is currently powered down.
        Z = CPU frequency in megahertz. Goes up or down dynamically depending on the CPU workload.
    """ # Extract # Set name CPU # status # Add data CPU
text