Benchmark mark - converting from CI3 to CI4 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Benchmark mark - converting from CI3 to CI4 (/showthread.php?tid=91747) |
Benchmark mark - converting from CI3 to CI4 - xanabobana - 10-01-2024 Hello, I'm converting a large project from CI3 to CI4. I have the following lines that needs to be converted: Code: $this->benchmark->mark('getProjectMethods_start'); I don't see an equivalent function to 'mark' in the CI4 documentation on benchmarking https://codeigniter4.github.io/CodeIgniter4/testing/benchmark.html How would I do this in CI4? Do I just use start and end with the same name, something like: Code: $benchmark = service('timer'); RE: Benchmark mark - converting from CI3 to CI4 - InsiteFX - 10-01-2024 CodeIgniter 4 User Guide - Testing Benchmarking I think you would use benchmarking->record(); RE: Benchmark mark - converting from CI3 to CI4 - kenjis - 10-03-2024 (10-01-2024, 12:07 PM)xanabobana Wrote: How would I do this in CI4? Do I just use start and end with the same name, something like: Yes. |