Visit /clockwork route to view and interact with the collected data. You can change the frames limit or disable this feature in the configuration file. Last 10 frames of the trace are collected by default. New in Clockwork 4.1, artisan commands, queue jobs and tests can now also be collected, you need to enable this in the config file.Ĭlockwork also collects stack traces for data like log messages or database queries. CORS pre-flight requests will not be collected by default. You can also filter the collected and recorded requests by a custom closure. Slow only will collect only requests with responses above the set slow threshold. Errors only will record only requests ending with 4xx and 5xx responses. You can even specify a secret to be set in the app settings to collect request. On-demand mode will collect data only when Clockwork app is open. There are several options that allow you to choose for which requests Clockwork is active. Check out the config file to see all what Clockwork can do. for database queries you can set a slow query threshold or enable detecting of duplicate (N+1) queries. Some features might allow for advanced options, eg. We collect a whole bunch of useful data by default, but you can enable more features or disable features you don't need in the config file. You can choose to explicitly enable or disable Clockwork, or even set Clockwork to always collect data without exposing them for further analysis. The Clockwork server-side component collects and stores data about your application.Ĭlockwork is only active when your app is in debug mode by default. Read full installation instructions on the Clockwork website. Note: If you are using the Laravel route cache, you will need to refresh it using the route:cache Artisan command. Congratulations, you are done! To enable more features like commands or queue jobs profiling, publish the configuration file via the vendor:publish Artisan command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |