The example in this article describes the method of detecting the memory consumption of codeigniter script. Share it with everyone for your reference. The details are as follows:
If you want to display the memory consumption of the script, please add the following code to the view
<?php echo $this->benchmark- >memory_usage() ; ?>
The relevant dummy variables are:
{ memory_usage}
I hope this article will be helpful to everyone’s PHP programming based on codeigniter.