~/talk

Getting Started with Profiling Laravel Code

Talkat Laracon EU Online 2021 · 2021-01-18..01-22· [web-performance]
name:Blackfire
links:none on file
slides:none on file

A demo shows Blackfire profiler installed as a PHP extension and a browser extension that safely profiles production by sending 10 requests averaged and reporting a 1.69s wall time plus CPU, I/O, memory and SQL details. The profile surfaces a hot path where a function runs almost 7,000 times, revealing an N+1 issue caused by lazy-loading recent comments; the fix replaces model iteration with a direct DB count and the reprofile shows the request time dropping accordingly.

AI-written summary · about

  1. 0:00Intro
  2. 1:04Inside Blackfire
  3. 3:50Time Summary
  4. 5:35Profile Overview
  5. 8:20Feature Blocks
  6. 9:25Memory Usage
  7. 10:20Visualization
  8. 11:23Function Calls
  9. 13:45Exclusive Time
  10. 14:18Inclusive Time
  11. 14:49Hot Path
  12. 17:10Meta Information
  13. 19:06Recommendations
  14. 20:17Number of Entities
  15. 20:55User Activity Text
  16. 23:20User Comments
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.