Your privacy is important to us! Our website uses cookies, for which we need your consent. Please review here our personal data handling and cookie policy.
|
||||||
|
The writer for xhprof files is implemented in lib/xhprofWriter.php. It exposes 2 functions:
function web3tracer_xhprofWrite($data,$filename=null,$path=null)
Writes xhprof format files to read with the xhprof web tools.
Parameters: $data - is the data returned by the web3tracer_disable() function $filename - is the name of the file to be written. If null, a name is automatically generated in the form 2013-05-24-12-59-03.xhprof.xhprof $path - Directory in which to write the file. If null, current directory is used.
Return value: true on success, false on failure (file is not writable)
function web3tracer_xhprofConvert($data)
Converts data from the format returned by web3tracer_disable() to the same format returned by the xhprof_disable() function. Use this function as a connector between web3tracer and your xhprof enabled scripts.
Parameters: $data - is the data returned by the web3tracer_disable() function
Return value: An array identical to the one generated by XHProf, but fully processed in the web3tracer manner (eg. with cycle detection). |