Homestyx hydra
Diffusion hydra 0f8984f5a700

Move XHProf sampling code out of index.php

Description

Move XHProf sampling code out of index.php

Summary:

  • Separate the ideas of "requested" (explicit user request) vs "started" (user request or sampling).
  • Move this code out of index.php into the XHProf stuff (general effort to make index.php smaller).

Test Plan:
Verified that profiling still works, and profiling extends to ajax requests.

Set sampling rate to 2, saw 50% samples.

Looked at database, saw sampling data populating properly.

Reviewers: vrana, nh

Reviewed By: vrana

CC: aran

Differential Revision: https://secure.phabricator.com/D4891

Details

Provenance
epriestleyAuthored on Feb 9 2013, 6:47 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:b72e7969a1e0: Move Pygments handling to libphutil
Branches
Unknown
Tags
Unknown

Event Timeline