PerformanceTestRecorder
class PerformanceTestRecorder implements EventSubscriberInterface (View source)
Records the number of times specific events occur.
Properties
| protected StateInterface | $service | The state service for persistent storage if necessary. |
|
| static protected array | $record |
Methods
__construct(bool $persistent, StateInterface|null $state)
PerformanceTestRecorder constructor.
int
getCount(string $type, string $name)
No description
void
record(string $type, string $name)
Records the occurrence of an event.
onRouteBuilderFinish()
Records a router rebuild.
static array
getSubscribedEvents()
{@inheritdoc}
static void
registerService(string $services_file, bool $persistent)
Registers core.performance.test.recorder service.
Details
__construct(bool $persistent, StateInterface|null $state)
PerformanceTestRecorder constructor.
int
getCount(string $type, string $name)
No description
void
record(string $type, string $name)
Records the occurrence of an event.
onRouteBuilderFinish()
Records a router rebuild.
static array
getSubscribedEvents()
{@inheritdoc}
static void
registerService(string $services_file, bool $persistent)
Registers core.performance.test.recorder service.