Welcome Guest, Not a member yet? Register   Sign In
Benchmarking Class in CI 2.1
#1

[eluser]Demonicpagan[/eluser]
I've been trying to get {elapsed_time} and {memory_usage} to display in my view files and all I get is {elapsed_time} and {memory_usage} showing and not being replace by actual values. I've even gone about not using the pseudo-variables and actually echoing $this->benchmark->elapsed_time(); and $this->benchmark->memory_usage(); yet it still displays {elapsed_time} and {memory_usage} when displaying the page.

Is this a bug in CI 2.1 or is there something I'm missing. I am running PHP version 5.3.10 and it is configured with --enable-memory-limit.
#2

[eluser]InsiteFX[/eluser]
Code:
<p class="footer">
        CodeIgniter Version: &lt;?php echo CI_VERSION; ?&gt;&nbsp;&nbsp;|&nbsp;&nbsp;
        Page rendered in <strong>{elapsed_time}</strong> seconds.&nbsp;&nbsp;|&nbsp;&nbsp;
        Memory usage: <strong>{memory_usage}.</strong>  
    </p>
#3

[eluser]Demonicpagan[/eluser]
I have this in mine which is similar to what you have posted and I'm not getting them to parse

Code:
Execution: {elapsed_time}s | Memory Usage: {memory_usage}

I'd post the site url if I could, but I'm unable to.
#4

[eluser]InsiteFX[/eluser]
You can see these in ./system/core/Output.php
#5

[eluser]Demonicpagan[/eluser]
I do see them, I just can't get them to output actual values.
#6

[eluser]InsiteFX[/eluser]
Try re-installing CodeIgniter maybe you have a corrupted file someplace!

I am running CI v2.1.0 and it works fine here.




Theme © iAndrew 2016 - Forum software by © MyBB