PHP
  Home arrow PHP arrow Benchmarking with the Xdebug Extension
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
PHP

Benchmarking with the Xdebug Extension
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 1
    2009-03-09


    Table of Contents:
  • Benchmarking with the Xdebug Extension
  • Review: tracking program flow with the Xdebug extension
  • Benchmarking PHP applications with the X-debug extension
  • Extending the use of the xdebug_time_index() function

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Benchmarking with the Xdebug Extension
    ( Page 1 of 4 )

    Welcome to the sixth installment of a series that covers debugging in PHP with the Xdebug extension. Comprised of seven approachable tutorials, this series gets you started using the set of functions provided by this helpful library, so you can begin debugging your own PHP applications with an excellent level of control.

    Introduction

    In case you haven’t heard about it yet, the Xdebug extension is a full-featured library that allows you to perform all sorts of debugging tasks in PHP. These range from checking the values assigned to variables and determining which program lines are executed by the PHP engine, to performing more complex operations, such as benchmarking entire applications and verifying in which order functions are called by a script.

    Of course, it’s nearly impossible to learn how to achieve all of these tasks in only one single step, so if you’re interested in mastering the most relevant methods that come bundled with the Xdebug PHP extension, then you might want to have a close look at this group of educational articles.

    Now that you’re aware of the topics that are covered in this series of articles, it’s time to recall what we discussed in the previous part. In that particular chapter, I used a couple of examples to help explain how to use the  “xdebug_start_code_coverage()” and “xdebug_get_code_coverage()” functions to keep track of the sequence of lines executed by a sample PHP script.

    These functions permit you to verify, with a decent level of accuracy, the order in what the different blocks that compose a certain PHP application are called by the interpreter. Logically, performing this controlling process helps to debug errors that are commonly raised when working with conditional statements and recursive functions, which under normal conditions are pretty hard to grab.

    You'll be pleased to hear that the Xdebug extension comes equipped with additional functions that allow us to perform other debugging tasks, such as benchmarking PHP applications and checking in what order certain functions were called by the PHP engine.

    Therefore, in this sixth chapter of the series I’ll be discussing in depth how to take advantage of the benchmarking abilities offered by the Xdebug library, which rely heavily on its “xdebug_time_index()” function.

    Are you ready to learn how to use this brand new debugging function? Then click on the link that appears below and start reading now!



     
     
    >>> More PHP Articles          >>> More By Alejandro Gervasio
     

       

    PHP ARTICLES

    - Merging a File Split for FTP Upload using PHP
    - Getting Data from Yahoo Site Explorer Inboun...
    - Method Chaining: Adding More Selecting Metho...
    - How to Split a File During an FTP Upload Usi...
    - Expanding a Custom CodeIgniter Library with ...
    - Using the Yahoo Site Explorer Inbound Links ...
    - Building a CodeIgniter Custom Library with M...
    - Building an E-mini Trading System Using PHP ...
    - Completing the MySQL Class with Method Chain...
    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek