1

Possible Duplicate:
PHP memory profiling

From what I've found online, all I've seen for tracking memory usage in an PHP application is to use the native "memory_get_usage()" function or buy a commercial product like zend server.

Anybody have some other suggestions? Seems like a good use for Aspect Oriented Programming...

Community
  • 1
  • 1
AndreLiem
  • 2,031
  • 5
  • 20
  • 26

1 Answers1

1

XDebug works great for tracing, profiling, and debugging.

Jeff Hubbard
  • 9,822
  • 3
  • 30
  • 28
  • AFAIK XDebug only does invocation-count and time-based cost profiling, not memory. – Mike B Jan 07 '11 at 02:15
  • If you look at the trace output options, you can get memory usage per-call as well. I've been using it to optimize my autoload code (which, with a few well-placed caches, brought my page load times down an order of magnitude). – Jeff Hubbard Jan 07 '11 at 02:20