Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Xdebug, KCacheGrind and Webgrindwith WampServer<br />11 July 2010<br />Warsaw, Poland<br />Michał Szkodziński<br />IT Mana...
Summary<br />
Summary<br />3/21<br />This presentation showshow to use KCacheGrind and Webgrindwith Xdebug PHP extension works on WampSe...
Agenda<br />4/21<br />Xdebug extension for PHP<br />KCacheGrind for Windows<br />Webgrind<br /> Connect KCacheGrind and We...
1. Install Xdebug<br />
1. Download Xdebug binaries for Windows from:http://www.xdebug.org/download.php<br />Xdebug<br />6/21<br />Choose file for...
7/21<br />4. Add new line in Your php.ini file:<br />extension=php_xdebug.dll<br />zend_extension = c:wampinphpphp5.3.1ex...
2. Install KCacheGrind<br />
1. Download and run The KDE on Windows installerfrom The KDE on Windows Project websitehttp://www.winkde.org/pub/kde/ports...
2. Type path to installation directory, for example C:Program FilesKDE<br />3. Choose kcachegrind from list of packages<br...
4. You can find KCacheGrind in KDE bin directory,for example C:Program Fileskdein<br />KCacheGrind<br />11/21<br />
3. Install Webgrind<br />
13/21<br />1. Download zip archive from http://code.google.com/p/webgrind/downloads/list<br />2. Extract to your root www ...
4. Connect with WampServer<br />
1. Edit your WampServer template file C:wampwampmanager.tpl<br />2. Add three new lines in [Menu.Left] section:<br />Type:...
WampServer<br />16/21<br />3. Restart WampServer<br />4. Now You can launch KCacheGrind and Webgrind from WampServer menu<...
5. Use new features<br />
KCacheGrind<br />18/21<br />Choose cachegrind file<br />See calers and callee map<br />Switch to relative view<br />Search...
Webgrind<br />19/21<br />Choose cachegrind file<br />Sort by type of function, count or cost<br />Open file<br />See calls...
Web addresses<br />20/21<br />Usefull web addresses:<br />WampServer<br />http://www.wampserver.com/en – homepage<br />htt...
21/21<br />Questions<br />Questions? Contact us!<br />Mediovski Technology<br />ul. Wita Stwosza 40<br />02-661 Warsaw, Po...
Upcoming SlideShare
Loading in …5
×

Xdebug, KCacheGrind and Webgrind with WampServer

9,565 views

Published on

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

Published in: Technology
  • Be the first to comment

Xdebug, KCacheGrind and Webgrind with WampServer

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

×