bobbingwide / oik-bwtrace

debug trace for WordPress
https://www.oik-plugins.com/oik-plugins/oik-bwtrace-debug-trace-for-wordpress/
GNU General Public License v2.0
6 stars 1 forks source link

Functions traced should allow for OO methods invoking trace #8

Closed bobbingwide closed 9 years ago

bobbingwide commented 9 years ago

The trace output for an OO method does not show the class

c:/apache/htdocs/wordpress/wp-content/plugins/oik-lib/includes/class-oik-libs.php(208:0) is_loaded(1) 25 2015-09-14T13:37:13+00:00 0.032294 0.000658 cf! 1 0 14153512/14216416 F=84 2 Array
(
    [0] => bobbfunc
    [1] => 
)

Similarly the output from 'bw_trace_functions_traced' includes both functions and methods, but the class name of the method is not shown here either.

    [bw_trace_set_savequeries] => 1
    [bw_trace_activate_mu] => 2
 ...
    [determine_lib] => 51
    [is_loaded] => 42

This output could be improved by ensuring that the function name shows the class::method when applicable.

bobbingwide commented 9 years ago

Fixed in v2.0.6 https://github.com/bobbingwide/oik-bwtrace/commit/eba14e04e69ac285a456d143c69c03fd70b88f79