News Feed
Sections
News Archive


Community Events






Don't see your event here?
Let us know!


feed this:

Tony Bibbs' Blog:
Cutting Use of Zend_Log in Half
0 comments :: posted Friday May 30, 2008 @ 15:24:20
voice your opinion now!

Tony Bibbs has posted a mini-case study about how, at his work, they cut their use of the Zend_Log component of the Zend Framework in half:

As part of the framework we use at work, we borrow what we feel are the best components out there and logging is a key part of that. Logging should be simple to setup, easy to use and should minimize work on the developer. After all, you are going to do a lot of logging, right?

He shows how, with a few changes to how they log (creation of a custom logger), it reduces the number of calls to load a Zend_Registry object each time something needs to be recorded. His code is included in the post along with examples of it in action.

tagged with: zendlog logging zendframework component zendregistry custom log


Dave Marshall's Blog:
Log memory usage using declare and ticks in PHP
0 comments :: posted Friday May 16, 2008 @ 12:05:37
voice your opinion now!

Posted to his blog, Dave Marshall has a tip that uses declare and a trick or two to check out the memory usage of your scripts.

As far as I know, there isn't any memory footprint profiling in Xdebug, I think there was at some point but they removed it because it was a little flaky. I like to monitor the memory usage within my scripts, and I've found this simple snippet can help.

The script defines a log_memory function that pushes the memory and time information into a session value. The register_tick_function method is used to add log_memory to the handler and its called over and over from inside his for loop.

tagged with: log memory usage ticks registertickfunction method session


developer book job code mysql release PEAR framework PHP5 package releases zendframework database pecl application ajax conference cakephp security zend

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework