Package pyhai :: Package profilers :: Module default :: Class DefaultProfiler
[hide private]
[frames] | no frames]

Class DefaultProfiler

source code

       object --+    
                |    
base.ProfilerBase --+
                    |
                   DefaultProfiler

The default profiler plugin

Nested Classes [hide private]

Inherited from base.ProfilerBase: __metaclass__

Instance Methods [hide private]
str
__detect_system(self, system_class)
Detects the specific type of system.
source code
 
__init__(self)
Initialize profiler
source code
dict
profile(self)
Returns the system's profile
source code
str
system(self)
Returns the system property of the system's profile
source code
str
system_class(self)
Returns the system class property - windows, linux, java
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __abstractmethods__ = frozenset([])
  __profile = None
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__detect_system(self, system_class)

source code 

Detects the specific type of system. For windows, the windows type and version, for linux, the distribution and version

Returns: str
A string representing the specific type of system: windows7, windowsxp, ubuntu, centos, etc

__init__(self)
(Constructor)

source code 

Initialize profiler

Overrides: object.__init__

profile(self)

source code 

Returns the system's profile

Returns: dict
A dictionary consisting of the system and architecture
Overrides: base.ProfilerBase.profile

system(self)

source code 

Returns the system property of the system's profile

Returns: str
The system property of the system's profile
Overrides: base.ProfilerBase.system

system_class(self)

source code 

Returns the system class property - windows, linux, java

Returns: str
The type of system
Overrides: base.ProfilerBase.system_class