syspy  0.1
syspy windows system information tool with python
syspy.cpu.test Namespace Reference

Functions

def cpuTime ()
 
def cpuPercent ()
 
def cpuPercentPerCpu ()
 
def timesPercent ()
 
def processorCount ()
 
def caffinity ()
 

Variables

tuple cps = CPU()
 

Function Documentation

def syspy.cpu.test.caffinity ( )
START Test Results

CPU Affinity: [0, 1]

END Test Results

Definition at line 89 of file test.py.

def syspy.cpu.test.cpuPercent ( )
START Test Results

For 10 times:
Current CPU Usage: 0.0
Current CPU Usage: 0.0
Current CPU Usage: 0.0
Current CPU Usage: 0.8
Current CPU Usage: 0.0
Current CPU Usage: 0.1
Current CPU Usage: 1.5
Current CPU Usage: 0.0
Current CPU Usage: 0.0
Current CPU Usage: 0.8

END Test Results

Definition at line 21 of file test.py.

def syspy.cpu.test.cpuPercentPerCpu ( )
START Test Results

For two processors
Cpu Percent Per Cpu: [7.9, 4.8]
Cpu Percent Per Cpu: [29.2, 29.2]
Cpu Percent Per Cpu: [1.6, 0.0]
Cpu Percent Per Cpu: [0.0, 0.0]
Cpu Percent Per Cpu: [0.0, 0.0]

END Test Results

Definition at line 42 of file test.py.

def syspy.cpu.test.cpuTime ( )
START Test Results

User: 1076.952880859375 System: 534.6328125 IDLE: 29336.767578125

a = user cpu times
b = system cpu times
c = idle cpu times

END Test Results

Definition at line 5 of file test.py.

def syspy.cpu.test.processorCount ( )
START Test Results

Cpu Count: 2
Cpu Count without Logical: 2

a = Totally Cpu Count
b = Without logical

END Test Results

Definition at line 74 of file test.py.

def syspy.cpu.test.timesPercent ( )
START Test Results

CPU Times Percent:
User: 0.0 System: 0.0 IDLE: 100.0

a = user cpu times percent
b = system cpu times percent
c = idle cpu times percent

END Test Results

Definition at line 58 of file test.py.

Variable Documentation

tuple syspy.cpu.test.cps = CPU()

Definition at line 3 of file test.py.