Skip to content

Add support for profiling tools #28

@Firehed

Description

@Firehed

Exactly how this should work is a bit up in the air. At minimum, I think the following is required (names TBD):

interface Profiler
{
  public function startEvent(string $name, string $description = '');
  public function endEvent(string $name);
}

And then allow the dispatcher to fire events before and after the actual endpoint execution. Implementations should be responsible for tracking durations, etc. I know this would generally work for Clockwork, but I'm not sure if that interface is generic enough to work with additional tools (importantly, ones that are better-suited to profiling APIs)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions