Refactor profiling output from profiling
authorChad Horohoe <chadh@wikimedia.org>
Fri, 14 Nov 2014 18:58:07 +0000 (10:58 -0800)
committerBryan Davis <bd808@wikimedia.org>
Tue, 18 Nov 2014 02:26:04 +0000 (19:26 -0700)
commitb8d93fb4fd0661c4994e6895b5e654516ba1c965
tree6b16c1c665181bdb553f8df3a8671340b86d7056
parent07527e1e5bf391541c40a467283c873b4accc31b
Refactor profiling output from profiling

* Added a standard getFunctionStats() method for Profilers to return
  per function data as maps. This is not toolbar specific like getRawData().
* Cleaned up the interface of SectionProfiler::getFunctionStats() a bit.
* Removed unused cpu_sq, real_sq fields from profiler UDP output.
* Moved getTime/getInitialTime to ProfilerStandard.

Co-Authored-By: Aaron Schulz <aschulz@wikimedia.org>
Change-Id: I266ed82031a434465f64896eb327f3872fdf1db1
18 files changed:
RELEASE-NOTES-1.25
StartProfiler.sample
autoload.php
includes/parser/Parser.php
includes/profiler/Profiler.php
includes/profiler/ProfilerSimpleDB.php [deleted file]
includes/profiler/ProfilerSimpleText.php [deleted file]
includes/profiler/ProfilerSimpleUDP.php [deleted file]
includes/profiler/ProfilerStandard.php
includes/profiler/ProfilerStub.php
includes/profiler/ProfilerXhprof.php
includes/profiler/SectionProfiler.php
includes/profiler/output/ProfilerOutput.php [new file with mode: 0644]
includes/profiler/output/ProfilerOutputDb.php [new file with mode: 0644]
includes/profiler/output/ProfilerOutputText.php [new file with mode: 0644]
includes/profiler/output/ProfilerOutputUdp.php [new file with mode: 0644]
maintenance/Maintenance.php
profileinfo.php