Event profiler inspired in QSTK (pyalgotrade.eventprofiler).