HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.
2.0.0-chaika
Hierarchical Cluster Engine Python language binding
|
Class which provides functionality for use profiling. More...
Public Member Functions | |
def | __init__ (self) |
constructor More... | |
def | readConfig (self, configName) |
load log config file of prifiler More... | |
def | start (self) |
start profiling More... | |
def | stop (self) |
stop profiling More... | |
Public Attributes | |
parser | |
logger | |
isStarted | |
status | |
sortby | |
limit | |
traceback | |
tracebackLoggerMode | |
errorMsg | |
pr | |
Static Public Attributes | |
string | MSG_ERROR_PARSE_CMD_PARAMS = "Error parse command line parameters." |
Constants error messages used in class. More... | |
string | MSG_ERROR_EMPTY_CONFIG_FILE_NAME = "Config file name is empty." |
string | MSG_ERROR_WRONG_CONFIG_FILE_NAME = "Config file name is wrong" |
string | MSG_ERROR_LOAD_APP_CONFIG = "Error loading application config file." |
string | MSG_ERROR_READ_LOG_CONFIG = "Error read log config file." |
string | MSG_ERROR_WRONG_CONFIG_OPTION = "Wrong format option" |
string | MSG_ERROR_WRONG__OPTION_SORTBY = "Read wrong value of 'sortby' from config" |
string | PROFILER_OPTION_LOG = "log" |
Constans profiler options read from config. More... | |
string | PROFILER_OPTION_STATUS = "profile" |
string | PROFILER_OPTION_SORTBY = "sortby" |
string | PROFILER_OPTION_LIMIT = "limit" |
string | PROFILER_OPTION_TRACEBACK = "traceback" |
string | PROFILER_OPTION_TRACEBACK_LOGGER_MODE = "tracebackLoggerMode" |
int | PROFILER_OPTION_STATUS_DEFAULT = 0 |
Constans default values of profiler options. More... | |
string | PROFILER_OPTION_SORTBY_DEFAULT = "cumulative" |
float | PROFILER_OPTION_LIMIT_DEFAULT = 1.0 |
int | PROFILER_OPTION_TRACEBACK_DEFAULT = 0 |
int | PROFILER_OPTION_TRACEBACK_LOGGER_MODE_DEFAULT = 1 |
list | PROFILER_OPTION_SORTBY_ALLOWED_LIST = ['stdname', 'calls', 'time', 'cumulative'] |
Constans allowed values of 'sortby'. More... | |
string | MESSAGES_ITEMS_DELIMITER = "," |
Constans for global message list of strings in the final message for profiler records. More... | |
dictionary | tracebackOptions |
Constans traceback config options (key - options name, value - default. More... | |
Private Member Functions | |
def | __initTrackbackOptions (self, config, section) |
initialize traceback options from config file More... | |
def | __loadAppConfig (self, configName) |
load application config file More... | |
def | __parseParams (self) |
parsing paramers More... | |
Class which provides functionality for use profiling.
Definition at line 32 of file Profiler.py.
def app.Profiler.Profiler.__init__ | ( | self | ) |
constructor
Constructor
Definition at line 94 of file Profiler.py.
|
private |
initialize traceback options from config file
config | - config parser |
section | - section name |
Definition at line 129 of file Profiler.py.
|
private |
load application config file
configName | - name of application config file |
Definition at line 145 of file Profiler.py.
|
private |
parsing paramers
Definition at line 206 of file Profiler.py.
def app.Profiler.Profiler.readConfig | ( | self, | |
configName | |||
) |
load log config file of prifiler
configName | - name of log profiler config file |
Definition at line 190 of file Profiler.py.
def app.Profiler.Profiler.start | ( | self | ) |
def app.Profiler.Profiler.stop | ( | self | ) |
stop profiling
Definition at line 237 of file Profiler.py.
app.Profiler.Profiler.errorMsg |
Definition at line 106 of file Profiler.py.
app.Profiler.Profiler.isStarted |
Definition at line 100 of file Profiler.py.
app.Profiler.Profiler.limit |
Definition at line 103 of file Profiler.py.
app.Profiler.Profiler.logger |
Definition at line 99 of file Profiler.py.
|
static |
Constans for global message list of strings in the final message for profiler records.
Definition at line 62 of file Profiler.py.
|
static |
Definition at line 36 of file Profiler.py.
|
static |
Definition at line 38 of file Profiler.py.
|
static |
Constants error messages used in class.
Definition at line 35 of file Profiler.py.
|
static |
Definition at line 39 of file Profiler.py.
|
static |
Definition at line 41 of file Profiler.py.
|
static |
Definition at line 37 of file Profiler.py.
|
static |
Definition at line 40 of file Profiler.py.
app.Profiler.Profiler.parser |
Definition at line 98 of file Profiler.py.
app.Profiler.Profiler.pr |
Definition at line 108 of file Profiler.py.
|
static |
Definition at line 47 of file Profiler.py.
|
static |
Definition at line 54 of file Profiler.py.
|
static |
Constans profiler options read from config.
Definition at line 44 of file Profiler.py.
|
static |
Definition at line 46 of file Profiler.py.
|
static |
Constans allowed values of 'sortby'.
Definition at line 59 of file Profiler.py.
|
static |
Definition at line 53 of file Profiler.py.
|
static |
Definition at line 45 of file Profiler.py.
|
static |
Constans default values of profiler options.
Definition at line 52 of file Profiler.py.
|
static |
Definition at line 48 of file Profiler.py.
|
static |
Definition at line 55 of file Profiler.py.
|
static |
Definition at line 49 of file Profiler.py.
|
static |
Definition at line 56 of file Profiler.py.
app.Profiler.Profiler.sortby |
Definition at line 102 of file Profiler.py.
app.Profiler.Profiler.status |
Definition at line 101 of file Profiler.py.
app.Profiler.Profiler.traceback |
Definition at line 104 of file Profiler.py.
app.Profiler.Profiler.tracebackLoggerMode |
Definition at line 105 of file Profiler.py.
|
static |
Constans traceback config options (key - options name, value - default.
Definition at line 65 of file Profiler.py.