You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Live profiler is a system-wide performance monitoring system in use at Badoo that is built on top of XHProf or its forks (Uprofiler or Tideways).
Live Profiler continually gathers function-level profiler data from production tier by running a sample of page requests under XHProf.
Live profiler UI aggregates the profile data corresponding to individual requests by various dimensions such a time, memory usage, and can help answer a variety of questions such as:
What is the function-level profile for a specific page?
How expensive is function "foo" across all pages, or on a specific page?
What functions regressed most in the last day/week/month?
What is the historical trend for execution time of a page/function? and so on.
Here is a plugin for PhpStorm to see the method performance directly in IDE.
liveprof.org shows all features and can be used for test purposes.
System Requirements
PHP version 7.0 or later to use web interface and run aggregation scripts.
PHP version 5.4 or later / hhvm version 3.25.0 or later to collect profiles using Live Profiler
Connection to database with profiling result. You can collect profiles using Live Profiler tool
Database extension (mysqli, pgsql, sqlite support included)
Perl for flame graph functionality
Key features
Get stats of average value, minimum, maximum, 95 percentile of execution time, cpu time, memory usage and calls count.
Parameter list and statistics functions are configurable.
Graphs for every collected parameter and every method up to 6 months. Each graph also includes children stats. It helps to see the history of changes.
Differences interface to compare a particular request for two dates and see what became worse.
Get list of requests where a method was called last time. It may be helpful for refactoring purposes and find unused methods.
Get the most changed methods in any requests for two dates, for example, today and a week ago. It can help to find a place of a potential performance problem.