Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'measure' directive to RayServiceProvider #355

Merged

Conversation

iurigustavo
Copy link
Contributor

A new Blade directive, 'measure', has been added to the RayServiceProvider.php file. This directive calls ray()->measure() method in the Laravel Blade templates.

{{-- inside a view --}}

@measure
@php(sleep(10))
@measure
Total time
10.073 s
Maximum memory usage
32.00 MB
Time since last call
10.073 s

A new Blade directive, 'measure', has been added to the RayServiceProvider.php file. This directive calls ray()->measure() method in the Laravel Blade templates.
@freekmurze
Copy link
Member

Very nice!

@freekmurze freekmurze merged commit f57b294 into spatie:main Jul 3, 2024
29 of 30 checks passed
@freekmurze
Copy link
Member

Thank you!

@iurigustavo iurigustavo deleted the feature/add-measure-blade-directive branch October 14, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants