[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Profiler class for Mwprof. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 256 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 1 time |
Includes or requires: | 0 files |
ProfilerMwprof:: (9 methods):
isStub()
isPersistent()
profileIn()
profileOut()
updateRunningEntry()
getRawData()
logData()
close()
getOutput()
Class: ProfilerMwprof - X-Ref
Profiler class for Mwprof.isStub() X-Ref |
No description |
isPersistent() X-Ref |
No description |
profileIn( $inName ) X-Ref |
Start a profiling section. Marks the beginning of the function or code-block that should be time and logged under some specific name. param: string $inName Section to start |
profileOut( $outName ) X-Ref |
Close a profiling section. Marks the end of the function or code-block that should be timed and logged under some specific name. param: string $outName Section to close |
updateRunningEntry( $name, $elapsedCpu, $elapsedWall ) X-Ref |
Update an entry with timing data. param: string $name Section name param: float $elapsedCpu Elapsed CPU time param: float $elapsedWall Elapsed wall-clock time |
getRawData() X-Ref |
return: array |
logData() X-Ref |
Serialize profiling data and send to a profiling data aggregator. Individual entries are represented as arrays and then encoded using MessagePack, an efficient binary data-interchange format. Encoded entries are accumulated into a buffer and sent in batch via UDP to the profiling data aggregator. |
close() X-Ref |
Close opened profiling sections |
getOutput() X-Ref |
No description |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |