[WordPress] 外掛分享: WP XHProf Profiler

前言介紹

  • 這款 WordPress 外掛「WP XHProf Profiler」是 2012-01-09 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2012-01-10,距離現在已有 4863 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.6.0 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

artberri |

外掛標籤

php | debug | profiler | profiling |

內容簡介

WP XHProf Profiler外掛是編寫或除錯插件和佈景主題時進行分析的方便方式。它使用Facebook Dev Team開發的PHP分析器XHProf來完成這項任務(在啟用插件之前,必須先安裝它)。

用法

預設情況下,分析被禁用,需要在wp-config.php上啟用WP_DEBUG。啟用後,所有WordPress頁面底部都將有一個包含分析數據的鏈接。

什麼是XHProf?

來自http://www.php.net/manual/en/intro.xhprof.php

XHProf是一種輕量級的基於層次和儀器的分析器。在數據收集階段,它跟踪程序動態呼叫圖中的調用次數和包容性指標。在報告/後期處理階段計算獨占指標,例如時間(經過)時間、CPU時間和記憶體使用。函數分析可以按調用者或被調用者進行詳細的分解。XHProf通過在數據收集時檢測調用圖中的循環,並通過給遞歸調用分配唯一的深度限定名來避免這些循環。

XHProf包括一個簡單的基於HTML的用戶界面(使用PHP編寫)。基於瀏覽器的用於查看分析器結果的UI使查看結果或與同行共享結果變得容易。還支援呼叫圖像視圖。

XHProf報告常常有助於了解所執行代碼的結構。報告的階層性質可用於確定,例如,是哪些呼叫導致了特定函數的調用。

XHProf支援比較兩個運行(稱為“差異”報告)或從多個運行中收集數據的能力。和單次運行報告一樣,差異和聚合報告提供“平坦”和“階層”的視圖。

更多文檔可通過xhprof網站獲得» [http://pecl.php.net/package/xhprof]

支援

歡迎發表評論、提問、提出功能請求和錯誤報告:http://www.berriart.com/en/xhprof-profiler/

原文外掛簡介

WP XHProf Profiler plugin is an easy way to profile your plugins and themes when you are coding or debugging. To get it done it uses XHProf, a PHP profiler made by the Facebook Dev Team (you must install it before activating the plugin).
Usage
By default the profiling is disabled, activate WP_DEBUG on your wp-config.php to enable it. After doing it, all your wordpress pages will have a link at bottom with the profiling data.
¿What is XHProf?
From http://www.php.net/manual/en/intro.xhprof.php
XHProf is a light-weight hierarchical and instrumentation based profiler. During the data collection phase, it keeps track of call counts and inclusive metrics for arcs in the dynamic callgraph of a program. It computes exclusive metrics in the reporting/post processing phase, such as wall (elapsed) time, CPU time and memory usage. A functions profile can be broken down by callers or callees. XHProf handles recursive functions by detecting cycles in the callgraph at data collection time itself and avoiding the cycles by giving unique depth qualified names for the recursive invocations.
XHProf includes a simple HTML based user interface (written in PHP). The browser based UI for viewing profiler results makes it easy to view results or to share results with peers. A callgraph image view is also supported.
XHProf reports can often be helpful in understanding the structure of the code being executed. The hierarchical nature of the reports can be used to determine, for example, what chain of calls led to a particular function getting called.
XHProf supports ability to compare two runs (a.k.a. “diff” reports) or aggregate data from multiple runs. Diff and aggregate reports, much like single run reports, offer “flat” as well as “hierarchical” views of the profile.
Additional documentation can be found via the xhprof website » [http://pecl.php.net/package/xhprof]
Support
Comments, questions, feature requests and bug reports are welcome: http://www.berriart.com/en/xhprof-profiler/

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP XHProf Profiler」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.9 |

延伸相關外掛(你可能也想知道)

  • WP Crontrol 》WP Crontrol 可以讓您查看和控制 WP-Cron 系統中正在發生的事件。從管理界面,您可以:, , 查看所有的 Cron 事件以及它們的參數、循環間隔時間、回撥函數以及...。
  • Query Monitor – The developer tools panel for WordPress 》ministrator user). This cookie can be set by defining QM_AUTH_KEY in your wp-config.php file., To learn more about how to use Query Monitor, please...。
  • P3 (Plugin Performance Profiler) 》這個外掛程式可以創建您 WordPress 網站的外掛程式效能概況,並且藉由測量這些外掛對網站載入時間的影響。通常WordPress網站由於過多或配置不佳的外掛程式而...。
  • Debug Bar 》在管理列上新增一個除錯選單,顯示查詢、快取及其他有用的除錯資訊。, 開發者必備的外掛!, 當啟用WP_DEBUG時,也會追蹤 PHP 的警告和注意事項,使它們更容易...。
  • WP Debugging 》此外掛在啟用時會在 wp-config.php 中設定以下偵錯常數,並在停用時移除它們。任何錯誤都會導致拋出 PHP Exception。偵錯常數請參考 WordPress 的「Debugging...。
  • My WP Customize Admin/Frontend 》這個外掛讓管理者和前端使用者都能輕鬆地進行自訂設定。許多自訂篩選器和操作,還包含開發者工具。, 示範網站在這裡:https://tastewp.com/new/?pre-installe...。
  • reBusted! 》這個外掛可以免去你問「你有清空快取嗎?」的問題。, 這是根據原本由 Paul Clark 開發的外掛更新,以符合今天的 WordPress 和 PHP。, 功能, , 在線上網站上安...。
  • Debug Log Manager 》Debug Log Manager 可以讓您:, , 單擊啟用 WP_DEBUG 以記錄 PHP、數據庫和 JavaScript 錯誤,不需要手動編輯 wp-config.php 文件,完成後再禁用。 , 在自訂...。
  • Code Profiler – WordPress Performance Profiling and Debugging Made Easy 》一個可以測量 WordPress 外掛與佈景主題效能的分析工具。, Code Profiler 可以協助您在 PHP 層面上測量您的外掛與佈景主題的效能,並快速找到任何潛在的 Word...。
  • Plugin Detective – Troubleshooting Conflicts 》Plugin Detective 可以幫助您快速且輕鬆地排除網站上的問題,並找出問題的原因。一旦找到罪犯,您可以快速停用有問題的外掛程式。甚至當您的網站出現白屏、致...。
  • Dashboard Widgets Suite 》插件名稱:Dashboard Widgets Suite(控制面板小工具套裝), , 該外掛提供 1 個插件與 9 個小工具,可簡化您的工作流程並提高工作效率。該套裝小工具包括以下...。
  • which template file 》想知道 WordPress 在前台顯示頁面時使用哪個模板嗎?, 這個外掛可以幫您達成這個目的。您可以在免費的模擬網站上嘗試使用:點此連結 => https://tastewp.c...。
  • Debug This 》Debug This是由友好Macho Themes團隊打造、維護和運營的獨立外掛程式。, 對於管理員、開發人員和支援人員,Debug This提供了大量的有關WordPress安裝的信息,...。
  • Debug Log – Manager Tool 》這是一個簡單的除錯日誌外掛程式,您可以在儀表板中檢查除錯日誌。透過一個點擊,您可以啟用或停用除錯功能(例如 ‘ WP_DEBUG’、‘WP_DEBUG...。
  • Debug 》Debug 可以透過編輯 wp-config.php 檔案,幫助您在 WordPress 網站中找到錯誤。您可以使用 Debug 外掛啟用錯誤報告功能,在 WordPress CMS/網站上啟用任何運...。

文章
Filter
Apply Filters
Mastodon