Skip to main content

What is the unit for memory values in XDebug traces?


What is the unit for memory values in Xdebug traces? bytes?



For instance, I have these lines:




TRACE START [2011-11-30 13:11:18]
0.2122 2618704 +489048 -> require_once(...) ...:8
...
0.4147 6847864 +64 -> strtr(string(34), array(128)) ...:21



So, does 6847864 = 6.5MB?


Source: Tips4allCCNA FINAL EXAM

Comments

  1. It is the same as memory_get_usage (and basicly any other notification about memory in PHP):


    Returns the amount of memory, in bytes, that's currently being
    allocated to your PHP script.

    ReplyDelete

Post a Comment

Popular posts from this blog

Wildcards in a hosts file

I want to setup my local development machine so that any requests for *.local are redirected to localhost . The idea is that as I develop multiple sites, I can just add vhosts to Apache called site1.local , site2.local etc, and have them all resolve to localhost , while Apache serves a different site accordingly.