Your SlideShare is downloading. ×
Xdebug, KCacheGrind and Webgrind with WampServer
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Xdebug, KCacheGrind and Webgrind with WampServer

8,130
views

Published on

How to use KCacheGrind and Webgrindwith Xdebug PHP extension works on WampServer

How to use KCacheGrind and Webgrindwith Xdebug PHP extension works on WampServer

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
8,130
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
39
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Xdebug, KCacheGrind and Webgrindwith WampServer
    11 July 2010
    Warsaw, Poland
    Michał Szkodziński
    IT Manager
    Mediovski Technology
  • 2. Summary
  • 3. Summary
    3/21
    This presentation showshow to use KCacheGrind and Webgrindwith Xdebug PHP extension works on WampServer.
    You need WampServer, base knowledge about profiling PHP applications,internet connection and 15 minutes of free time.
    You can find all usefull web addresses on the last slide.
  • 4. Agenda
    4/21
    Xdebug extension for PHP
    KCacheGrind for Windows
    Webgrind
    Connect KCacheGrind and Webgrind with WampServer
  • 5. 1. Install Xdebug
  • 6. 1. Download Xdebug binaries for Windows from:http://www.xdebug.org/download.php
    Xdebug
    6/21
    Choose file for your PHP and Windows version - I get '5.3 VC6 (32 bit)'
    2. Save dll file to your PHP extensions directory, for exampleC:wampinphpphp5.3.1ext
    3. Rename dll file to php_xdebug.dll
  • 7. 7/21
    4. Add new line in Your php.ini file:
    extension=php_xdebug.dll
    zend_extension = c:wampinphpphp5.3.1extphp_xdebug.dll
    xdebug.remote_enable=1
    xdebug.remote_host="127.0.0.1"
    xdebug.remote_port=9000
    xdebug.remote_handler="dbgp"
    xdebug.remote_mode=req
    xdebug.profiler_enable=1
    xdebug.profiler_output_dir="c:/wamp/tmp/"
    xdebug.collect_params=On
    xdebug.show_local_vars=On
    Xdebug
    Check if paths are correct for your WampServer configuration.
  • 8. 2. Install KCacheGrind
  • 9. 1. Download and run The KDE on Windows installerfrom The KDE on Windows Project websitehttp://www.winkde.org/pub/kde/ports/win32/installer/kdewin-installer-gui-latest.exe
    KCacheGrind
    9/21
  • 10. 2. Type path to installation directory, for example C:Program FilesKDE
    3. Choose kcachegrind from list of packages
    KCacheGrind
    10/21
  • 11. 4. You can find KCacheGrind in KDE bin directory,for example C:Program Fileskdein
    KCacheGrind
    11/21
  • 12. 3. Install Webgrind
  • 13. 13/21
    1. Download zip archive from http://code.google.com/p/webgrind/downloads/list
    2. Extract to your root www directory, for exampleC:wampwwwwebgrind
    3. You can find it on http://localhost/webgrind
    Webgrind
  • 14. 4. Connect with WampServer
  • 15. 1. Edit your WampServer template file C:wampwampmanager.tpl
    2. Add three new lines in [Menu.Left] section:
    Type: item; Caption: "KCacheGrind"; Action: run; FileName:"C:Program Fileskdeinkcachegrind.exe"; Parameters: ""; Glyph: 5
    Type: item; Caption: "Webgrind"; Action: run; FileName: "${c_navigator}";Parameters: "http://localhost/webgrind/"; Glyph: 5
    Type: separator; Caption: ""
    WampServer
    15/21
    Check if file names are correct.
  • 16. WampServer
    16/21
    3. Restart WampServer
    4. Now You can launch KCacheGrind and Webgrind from WampServer menu
    5. Use it to improve performance of Your PHP based application
  • 17. 5. Use new features
  • 18. KCacheGrind
    18/21
    Choose cachegrind file
    See calers and callee map
    Switch to relative view
    Search and group function
  • 19. Webgrind
    19/21
    Choose cachegrind file
    Sort by type of function, count or cost
    Open file
    See calls and called from
  • 20. Web addresses
    20/21
    Usefull web addresses:
    WampServer
    http://www.wampserver.com/en – homepage
    http://www.wampserver.com/dl.php – download
    Xdebug
    http://www.xdebug.org – product homepage
    http://www.xdebug.org/download.php – download
    KCacheGrind
    http://kcachegrind.sourceforge.net/html/Home.html – product homepage
    The KDE on Windows Project
    http://windows.kde.org – project homepage
    http://www.winkde.org/pub/kde/ports/win32/installer/kdewin-installer-gui-latest.exe – installer
    Webgrind
    http://code.google.com/p/webgrind – project homepage
    http://code.google.com/p/webgrind/downloads/detail?name=webgrind-release-1.0.zip – download
  • 21. 21/21
    Questions
    Questions? Contact us!
    Mediovski Technology
    ul. Wita Stwosza 40
    02-661 Warsaw, Poland
    phone: +48 22 646 76 84
    e-mail: technology@mediovski.plwww: http://technology.mediovski.pl
    Join us:

×