• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Php Code Profiling Using X Debug
 

Php Code Profiling Using X Debug

on

  • 2,921 views

Presented by Gennady Feldman at Web Peformance for PHP developers (NY Web Performance Meetup & NY PHP)....

Presented by Gennady Feldman at Web Peformance for PHP developers (NY Web Performance Meetup & NY PHP).

Xdebug is a very powerful PHP extension that should be in the toolbox of any PHP developer. In this quick presentation we will do a quick introduction into some of the things Xdebug is capable of and what it can do for you. We'll cover a number of Xdebug features like remote debugging and code profiling. Forget those print and echo statements as your debugging aids. Gennady will share some tips and tricks (time permitting) of how to be a more efficient and productive PHP developer.

http://www.nyphp.org/content/presentations/

Statistics

Views

Total Views
2,921
Views on SlideShare
2,796
Embed Views
125

Actions

Likes
3
Downloads
51
Comments
0

4 Embeds 125

http://www.sergeychernyshev.com 70
http://www.techpresentations.org 49
http://www.slideshare.net 3
http://developers.spilgames.com 3

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Php Code Profiling Using X Debug Php Code Profiling Using X Debug Presentation Transcript

    • PHP code profiling using XDebug By Gennady Feldman June 16, 2009
    • Overview
      • Introduction
      • Profiling with Xdebug
      • Enabling Profiling in Xdebug
      • Summary
      • Q & A
    • 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.
    • 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).
    • WinCacheGrind
    • KCacheGrind Screenshot
    • WebGrind Screenshot
    • 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
    • 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.
    • 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 /
    •  
    • Q & A