HomePhorge

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, 3:47 PM
themackabuPushed on Tue, Mar 25, 8:07 PM
Parents
rPb72e7969a1e0: Move Pygments handling to libphutil
Branches
Unknown
Tags
Unknown

Event Timeline