
內容簡介
主題和外掛程式分析器使用一種鮮為人知的 PHP 特性,即 ticks。基本上,這是一個內部事件,在每次執行代碼塊時觸發,通常以函數調用或花括號 {} 標記。
外掛程式使用 ticks 收集已執行的函數列表,顯示它們被呼叫的次數以及它們的總執行時間。外掛程式的選項頁提供過濾器,可以選擇和排序結果,使開發人員能了解哪些代碼部分需要仔細檢查。
外掛標籤
開發者團隊
② 後台搜尋「Theme and Plugin (T&P) Profiler」→ 直接安裝(推薦)
原文外掛簡介
The Theme and Plugin Profiler uses a little known PHP feature known as ticks. Basically, this is an internal event that occurs every time a code block is executed, marked (roughly) by a function call or curly {} brackets.
The plugin uses ticks to collect a list of the functions that were executed, how often they were called and how much time they took in total. The plugin’s option page gives some filters to select and sort the results. This will give developers clues which parts of their code demand scrutiny.
