![]() |
{memory_usage} in Codeigniter 4? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: {memory_usage} in Codeigniter 4? (/showthread.php?tid=72357) |
{memory_usage} in Codeigniter 4? - sibiniv - 12-10-2018 I used to be able to show how much memory used by the page using {memory_usage}. How to show it in Codeigniter 4? The only one I know still working is {elapsed_time}. Is it the only one working now? Is there any list of variables I can use? https://codeigniter4.github.io/CodeIgniter4/testing/benchmark.html RE: {memory_usage} in Codeigniter 4? - InsiteFX - 12-10-2018 It has not been placed into the CI 4 Framework, but looking at CI 3 you should be able to create a method to do it. You would need to extend the output class or send it to the output. PHP Code: //-------------------------------------------------------------------- And modify it for something like above. I would create a function and then modify the output. The CI4 method is in the Codeigniter class. |