1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 23:32:40 +01:00
phorge-phorge/src
Nick Harper 5978bbfc64 Do sampled profiling of requests
Summary:
People have occasionally complained about phabricator being slow. We have
the access log to look at to see when slowness happens, but it doesn't tell
us much about why it happened. Since it's usually a sporadic issue that's
reported, it's hard to reproduce and then profile. This change will allow us
to collect sampled profiles so we can look at them when slowness occurs.

Test Plan:
checking that sampling works correctly:
- set rate to 0; do several page loads; check no new entries in table
- set rate to 1; check that there's a new row in the table for each page load
- set rate to 10; check that some requests write to table and some don't
check new ui for samples:
- load /xhprof/list/all/, see a list with a lot of samples
- load /xhprof/list/sampled/, see only sampled runs
- load /xhprof/list/manual/, see only non-sampled runs
- load /xhprof/list/my-runs/, se only my manual runs

Reviewers: vrana, epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3458
2012-09-17 10:53:45 -07:00
..
aphront Do sampled profiling of requests 2012-09-17 10:53:45 -07:00
applications Do sampled profiling of requests 2012-09-17 10:53:45 -07:00
docs Improve Arcanist event doucmentation 2012-09-05 11:41:32 -07:00
infrastructure Do sampled profiling of requests 2012-09-17 10:53:45 -07:00
rsrc Use sprites for (nearly) all application icons 2012-08-14 14:23:55 -07:00
view Fix error in ponder comment hiding. 2012-09-13 10:56:31 -07:00
__celerity_resource_map__.php adding comments to ponder 2012-09-11 12:13:20 -07:00
__phutil_library_init__.php Distinguish between aphront and phabricator. 2011-01-22 17:45:28 -08:00
__phutil_library_map__.php Do sampled profiling of requests 2012-09-17 10:53:45 -07:00