profiler icon indicating copy to clipboard operation
profiler copied to clipboard

Profiler enable/disable has illogical behavior

Open xaerobiont opened this issue 3 years ago • 0 comments

$profiler = new Profiler($logger); $profiler->enable(false);

Expects that profiler is disabled, but it returns new disabled profiler instead, and old one still stays enabled. I suggest to make enabled property mutable and switch it's value using method ->enable() instead of cloning profiler

xaerobiont avatar Nov 01 '22 11:11 xaerobiont