Log Profiler |
|
Is it possible to write the output of the profiler to a log via php functions?
|
||||||||||||
|
Site Admin
|
yes if you mean line profiler.
In this case you can add script in php.ini that will run _after_ each request. In this script you'll collect profiler results and send them wherever you want. API is not well documented, but you'll figure out how it works -- it's very simple Start here: http://forum.nusphere.com/howto-get-results-from-dbg-get-profiler-results-t1848.html |
||||||||||||
_________________ The PHP IDE team |
Site Admin
|
$result = dbg_get_profiler_results(); would do.
Note: you still need IDE running and you still need to run HTTP request or CLI command to launch your script with DBGSESSID argument to tell debugger you want to run profiler. |
||||||||||||
_________________ The PHP IDE team |
|
Thanks for the tip, that works
|
||||||||||||
|
Log Profiler |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by