File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 4
4
'enabled ' => true ,
5
5
'global_middleware ' => true ,
6
6
'path ' => '/opt/xhprof ' ,
7
+ 'output_dir ' => null ,
7
8
'name ' => 'xhprof ' ,
8
9
'freq ' => 1 / 1000 ,
9
10
'extension_name ' => 'xhprof ' ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public function enable()
24
24
public function disable ()
25
25
{
26
26
$ data = tideways_xhprof_disable ();
27
- $ runs = new XHProfRuns_Default ();
27
+ $ runs = new XHProfRuns_Default (config ( ' xhprof.output_dir ' , null ) );
28
28
$ runs ->save_run ($ data , config ('xhprof.name ' ));
29
29
}
30
30
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function enable()
26
26
public function disable ()
27
27
{
28
28
$ data = xhprof_disable ();
29
- $ runs = new XHProfRuns_Default ();
29
+ $ runs = new XHProfRuns_Default (config ( ' xhprof.output_dir ' , null ) );
30
30
$ runs ->save_run ($ data , config ('xhprof.name ' ));
31
31
}
32
32
You can’t perform that action at this time.
0 commit comments