gajus / xhprof.io

GUI to analyze the profiling data collected using XHProf – A Hierarchical Profiler for PHP.
http://xhprof.io/
Other
429 stars 103 forks source link

Add an option to control xhprof enable conditions #69

Open AlloVince opened 9 years ago

staabm commented 9 years ago

IIRC most of this functionality is already provided in https://github.com/staabm/xhprof.io

AlloVince commented 9 years ago

@staabm above repo looks like just use a key value to control the profiler, my way is use a closure, it will be more flexible

staabm commented 9 years ago

@AlloVince the related config file is loaded using require therefore it can contain any logic you like, e.g.

return array(
    'enabled' => rand(0, 100) === 42;
);