Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mickaelandrieu/645b4b4e18c1018598b7d9f0960089b6 to your computer and use it in GitHub Desktop.
Save mickaelandrieu/645b4b4e18c1018598b7d9f0960089b6 to your computer and use it in GitHub Desktop.
metrics:
services:
label: "Appels du Container de Services"
matching_calls:
php:
- callee:
selector: "=Symfony\Component\DependencyInjection\Container::get"
argument: { 1: "^"}
tests:
"Tests des appels au Container de Services"
path: "/.*"
assertions:
- metrics.services.count < 30
- metrics.services.wall_time < 20ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment