Vegas CMF Guide

Profiler library

Interface

The Data Collector interface is a basis for each profiled part of the system. It specifies the contract which has to be fullfilled by all profiler data collectors.
Data collectors are light classes which are used as event listeners to prepare data for profiler.
See http://docs.phalconphp.com/pl/latest/reference/events.html to acknowledge how to write them.

Example attachable hooks:

Custom data collectors

Just create appropriate class which implements \Vegas\Profiler\DataCollector\DataCollectorInterface & add fully qualified name of the class to DI container
See first step in Profiler setup.

Custom interface

When needed, the interface used by profiler data collectors can be switched.
It can be injected using constructor of \Vegas\Profiler\Manager in application Bootstrap file (see Setup Bootstrap).