Php Code Profiling Using X Debug

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite & 1 Group

    Php Code Profiling Using X Debug - Presentation Transcript

    1. PHP code profiling using XDebug By Gennady Feldman June 16, 2009
    2. Overview
      • Introduction
      • Profiling with Xdebug
      • Enabling Profiling in Xdebug
      • Summary
      • Q & A
    3. Introduction
      • Xdebug is a powerhouse extension for PHP.
      • It has a ton of features like debugging, tracing, profiling and analyzing problems with PHP code.
      • Today we will focus on some of it’s profiling abilities.
    4. Profiling with Xdebug
      • Xdebug can generate cachegrind files that contain profiling information.
      • It can be used to find bottle-necks in your scripts.
      • You need a tool to read these files.
      • Some of your options are: WinCacheGrind, KCacheGrind, webgrind.
      • These tools allow you to analyze script execution (execution time breakdown, # function calls, etc).
    5. WinCacheGrind
    6. KCacheGrind Screenshot
    7. WebGrind Screenshot
    8. Enabling Profiling
        • xdebug.profiler_append
          • Default: 0
        • xdebug.profiler_enable
          • Default: 0
        • xdebug.profiler_output_dir
          • Default: /tmp
        • xdebug.profiler_output_name
          • Default: cachegrind.out.%p
    9. Summary
      • Xdebug is a very powerful extension with a ton of great features.
      • We only covered one tiny thing that this extension can do.
      • This is a MUST in development environment.
      • Come see me speak at NYPHP August 25, 2009 covering Xdebug from A to X.
    10. Resources
      • Xdebug: http://www.xdebug.org
      • WinCacheGrind: http:// sourceforge .net/projects/ wincachegrind /
      • KCacheGrind: http://kcachegrind.sourceforge.net/
      • WebGrind: http://code.google.com/p/webgrind/
      • My blog: http://www.gena01.com/ blog /
    11.  
    12. Q & A

    + SergeyChernyshevSergeyChernyshev, 4 months ago

    custom

    400 views, 1 favs, 2 embeds more stats

    Presented by Gennady Feldman at Web Peformance for more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 400
      • 374 on SlideShare
      • 26 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 4
    Most viewed embeds
    • 14 views on http://www.techpresentations.org
    • 12 views on http://www.sergeychernyshev.com

    more

    All embeds
    • 14 views on http://www.techpresentations.org
    • 12 views on http://www.sergeychernyshev.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Groups / Events