Classes | |
class | EntryDataClass |
class | EventKeyClass |
class | FormatError |
class | JobStatsClass |
class | MaxItemLengthsClass |
class | ModuleKeyClass |
class | NoMoreInput |
class | Stats |
class | TabularAlignmentClass |
class | TimeModuleStatsClass |
Functions | |
def | signed_sqrt (value) |
def | ParseTimeModuleLine (line) |
def | ParseTimeEventLine (line) |
def | OPEN (Path, mode='r') |
def | ParseInputFile (InputFilePath, AllStats, EventStats, options) |
def | CenterString (s, w, f=' ') |
def | LeftString (s, w, f=' ') |
def | RightString (s, w, f=' ') |
def | JustifyString (s, w, f=' ') |
Variables | |
string | Version = "%(prog)s 1.5" |
string | __doc__ = "Prints statistics of the module timings based on the information from the Timing service." |
Parser = argparse.ArgumentParser(description=__doc__) | |
parse command line arguments More... | |
PresentMode | |
metavar | |
nargs | |
help | |
dest | |
action | |
const | |
type | |
int | |
default | |
version | |
options = Parser.parse_args() | |
CheckDuplicates | |
AllStats = JobStatsClass( ) | |
parse all inputs, collect the information More... | |
EventStats = TimeModuleStatsClass\ | |
bTrackEntries | |
int | nErrors = 0 |
OutputTable = TabularAlignmentClass() | |
print the results More... | |
def SortModuleTimes.CenterString | ( | s, | |
w, | |||
f = ' ' |
|||
) |
Returns the string s centered in a width w, padded by f on both sides.
Definition at line 649 of file SortModuleTimes.py.
def SortModuleTimes.JustifyString | ( | s, | |
w, | |||
f = ' ' |
|||
) |
Recomputes the spaces between the words in s so that they fill a width w. The original spacing is lost. The string is split in words by str.split(). The character f is used to create the filling spaces between the words. Note that the string can result longer than w if the content is too long.
Definition at line 663 of file SortModuleTimes.py.
def SortModuleTimes.LeftString | ( | s, | |
w, | |||
f = ' ' |
|||
) |
Returns the string s in a width w, padded by f on the right.
Definition at line 655 of file SortModuleTimes.py.
def SortModuleTimes.OPEN | ( | Path, | |
mode = 'r' |
|||
) |
Open a file (possibly a compressed one). Support for modes other than 'r' (read-only) are questionable.
Definition at line 499 of file SortModuleTimes.py.
def SortModuleTimes.ParseInputFile | ( | InputFilePath, | |
AllStats, | |||
EventStats, | |||
options | |||
) |
Parses a log file. The art log file at InputFilePath is parsed. The per-module statistics are added to the existing in AllStats (an instance of JobStatsClass), creating new ones as needed. Similarly, per-event statistics are added to EventStats (a TimeModuleStatsClass instance). options class can contain the following members: - Permissive (default: false): do not bail out when a format error is found; the entry is typically skipped. This often happens because the output line of the timing information is interrupted by some other output. - MaxEvents (default: all events): collect statistics for at most MaxEvents events (always the first ones) - CheckDuplicates (default: false): enables the single-event tracking, that allows to check for duplicates It returns the number of errors encountered.
Definition at line 510 of file SortModuleTimes.py.
def SortModuleTimes.ParseTimeEventLine | ( | line | ) |
Parses a line to extract event timing information. The line must be known to contain event timing information. The function returns a EntryDataClass including the timing information, or raises a FormatError if the line has no valid format. Format 1 (20140226): TimeEvent> run: 1 subRun: 0 event: 10 0.231838
Definition at line 460 of file SortModuleTimes.py.
def SortModuleTimes.ParseTimeModuleLine | ( | line | ) |
Parses a line to extract module timing information. The line must be known to contain module timing information. The function returns a EntryDataClass including the timing information, or raises a FormatError if the line has no valid format. Format 1 (20140226): TimeModule> run: 1 subRun: 0 event: 10 beziertrackercc BezierTrackerModule 0.231838
Definition at line 416 of file SortModuleTimes.py.
def SortModuleTimes.RightString | ( | s, | |
w, | |||
f = ' ' |
|||
) |
Returns the string s in a width w, padded by f on the left.
Definition at line 659 of file SortModuleTimes.py.
def SortModuleTimes.signed_sqrt | ( | value | ) |
|
private |
Definition at line 33 of file SortModuleTimes.py.
SortModuleTimes.action |
Definition at line 870 of file SortModuleTimes.py.
SortModuleTimes.AllStats = JobStatsClass( ) |
parse all inputs, collect the information
Definition at line 890 of file SortModuleTimes.py.
SortModuleTimes.bTrackEntries |
Definition at line 893 of file SortModuleTimes.py.
SortModuleTimes.CheckDuplicates |
Definition at line 883 of file SortModuleTimes.py.
SortModuleTimes.const |
Definition at line 871 of file SortModuleTimes.py.
SortModuleTimes.default |
Definition at line 874 of file SortModuleTimes.py.
SortModuleTimes.dest |
Definition at line 870 of file SortModuleTimes.py.
SortModuleTimes.EventStats = TimeModuleStatsClass\ |
Definition at line 892 of file SortModuleTimes.py.
SortModuleTimes.help |
Definition at line 867 of file SortModuleTimes.py.
SortModuleTimes.int |
Definition at line 874 of file SortModuleTimes.py.
SortModuleTimes.metavar |
Definition at line 866 of file SortModuleTimes.py.
SortModuleTimes.nargs |
Definition at line 866 of file SortModuleTimes.py.
int SortModuleTimes.nErrors = 0 |
Definition at line 897 of file SortModuleTimes.py.
SortModuleTimes.options = Parser.parse_args() |
Definition at line 880 of file SortModuleTimes.py.
SortModuleTimes.OutputTable = TabularAlignmentClass() |
print the results
Definition at line 916 of file SortModuleTimes.py.
SortModuleTimes.Parser = argparse.ArgumentParser(description=__doc__) |
parse command line arguments
Definition at line 862 of file SortModuleTimes.py.
SortModuleTimes.PresentMode |
Definition at line 863 of file SortModuleTimes.py.
SortModuleTimes.type |
Definition at line 874 of file SortModuleTimes.py.
Definition at line 32 of file SortModuleTimes.py.
SortModuleTimes.version |
Definition at line 878 of file SortModuleTimes.py.