mozilla-services / hindsight

Hindsight - light weight data processing skeleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a utility to profile plugin execution timers

trink opened this issue · comments

As per comment (2): #137 (comment)
The utility will look for matched sets of start/end prefixes followed by a colon and the timer name then compute the count, min, max, average and standard deviation outputting the result as a tsv.

Code

print("START_TIMER:foo")
--- do foo
print("END_TIMER:foo")

Log

1515017287796327572 [debug] START_TIMER:foo
1515017287796347586 [debug] END_TIMER:foo

Output

Timer Count Min Max Avg SD
foo 1 20014 20014 20014 0