Classes | |
class | CallStack |
class | CallStackBuilder |
class | LineItem |
class | ScopeBuilder |
Functions | |
def | percentile (N, percent, key=lambda x:x) |
def | tidy_tag (tag) |
def | time_format (idx) |
def | time_string (values) |
Variables | |
_ | |
int | accounted_for = 0 |
argp | |
args = argp.parse_args() | |
dictionary | BANNER = {'simple': 'Count: %(count)d', 'html': '<h1>Count: %(count)d</h1>'} |
builder = collections.defaultdict(CallStackBuilder) | |
call_stacks = collections.defaultdict(CallStack) | |
choices | |
cs = builder[thd] | |
default | |
list | fields = [] |
list | FORMAT |
header | |
inf = json.loads(line) | |
int | lines = 0 |
out = sys.stdout | |
SELF_TIME = object() | |
start = time.time() | |
list | table = [] |
tabulate_formats | |
thd = inf['thd'] | |
TIME_FROM_LAST_IMPORTANT = object() | |
TIME_FROM_SCOPE_START = object() | |
TIME_FROM_STACK_START = object() | |
time_taken = time.time() - start | |
TIME_TO_SCOPE_END = object() | |
TIME_TO_STACK_END = object() | |
int | total_stacks = 0 |
type | |
def profile_analyzer.percentile | ( | N, | |
percent, | |||
key = lambda x: x |
|||
) |
Find the percentile of an already sorted list of values. @parameter N - is a list of values. MUST be already sorted. @parameter percent - a float value from [0.0,1.0]. @parameter key - optional key function to compute value from each element of N. @return - the percentile of the values
Definition at line 187 of file profile_analyzer.py.
def profile_analyzer.tidy_tag | ( | tag | ) |
Definition at line 208 of file profile_analyzer.py.
def profile_analyzer.time_format | ( | idx | ) |
Definition at line 220 of file profile_analyzer.py.
def profile_analyzer.time_string | ( | values | ) |
Definition at line 214 of file profile_analyzer.py.
|
private |
Definition at line 263 of file profile_analyzer.py.
int profile_analyzer.accounted_for = 0 |
Definition at line 256 of file profile_analyzer.py.
profile_analyzer.argp |
Definition at line 34 of file profile_analyzer.py.
profile_analyzer.args = argp.parse_args() |
Definition at line 39 of file profile_analyzer.py.
dictionary profile_analyzer.BANNER = {'simple': 'Count: %(count)d', 'html': '<h1>Count: %(count)d</h1>'} |
Definition at line 230 of file profile_analyzer.py.
profile_analyzer.builder = collections.defaultdict(CallStackBuilder) |
Definition at line 159 of file profile_analyzer.py.
profile_analyzer.call_stacks = collections.defaultdict(CallStack) |
Definition at line 160 of file profile_analyzer.py.
profile_analyzer.choices |
Definition at line 37 of file profile_analyzer.py.
Definition at line 169 of file profile_analyzer.py.
profile_analyzer.default |
Definition at line 36 of file profile_analyzer.py.
list profile_analyzer.fields = [] |
Definition at line 266 of file profile_analyzer.py.
list profile_analyzer.FORMAT |
Definition at line 232 of file profile_analyzer.py.
profile_analyzer.header |
Definition at line 263 of file profile_analyzer.py.
profile_analyzer.inf = json.loads(line) |
Definition at line 167 of file profile_analyzer.py.
int profile_analyzer.lines = 0 |
Definition at line 162 of file profile_analyzer.py.
profile_analyzer.out = sys.stdout |
Definition at line 246 of file profile_analyzer.py.
profile_analyzer.SELF_TIME = object() |
Definition at line 27 of file profile_analyzer.py.
profile_analyzer.start = time.time() |
Definition at line 163 of file profile_analyzer.py.
list profile_analyzer.table = [] |
Definition at line 264 of file profile_analyzer.py.
profile_analyzer.tabulate_formats |
Definition at line 37 of file profile_analyzer.py.
profile_analyzer.thd = inf['thd'] |
Definition at line 168 of file profile_analyzer.py.
profile_analyzer.TIME_FROM_LAST_IMPORTANT = object() |
Definition at line 32 of file profile_analyzer.py.
profile_analyzer.TIME_FROM_SCOPE_START = object() |
Definition at line 28 of file profile_analyzer.py.
profile_analyzer.TIME_FROM_STACK_START = object() |
Definition at line 30 of file profile_analyzer.py.
profile_analyzer.time_taken = time.time() - start |
Definition at line 176 of file profile_analyzer.py.
profile_analyzer.TIME_TO_SCOPE_END = object() |
Definition at line 29 of file profile_analyzer.py.
profile_analyzer.TIME_TO_STACK_END = object() |
Definition at line 31 of file profile_analyzer.py.
int profile_analyzer.total_stacks = 0 |
Definition at line 181 of file profile_analyzer.py.
profile_analyzer.type |
Definition at line 36 of file profile_analyzer.py.