SlideShare a Scribd company logo
Xdebug, KCacheGrind and Webgrindwith WampServer11 July 2010Warsaw, PolandMichał SzkodzińskiIT ManagerMediovski Technology
Summary
Summary3/21This 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.
Agenda4/21Xdebug extension for PHPKCacheGrind for WindowsWebgrind Connect KCacheGrind and Webgrind with WampServer
1. Install Xdebug
1. Download Xdebug binaries for Windows from:http://www.xdebug.org/download.phpXdebug6/21Choose 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:\wamp\bin\php\php5.3.1\ext3. Rename dll file to php_xdebug.dll
7/214. Add new line in Your php.ini file:extension=php_xdebug.dllzend_extension = c:\wamp\bin\php\php5.3.1\ext\php_xdebug.dllxdebug.remote_enable=1xdebug.remote_host="127.0.0.1"xdebug.remote_port=9000xdebug.remote_handler="dbgp"xdebug.remote_mode=reqxdebug.profiler_enable=1xdebug.profiler_output_dir="c:/wamp/tmp/"xdebug.collect_params=Onxdebug.show_local_vars=OnXdebugCheck if paths are correct for your WampServer configuration.
2. Install KCacheGrind
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.exeKCacheGrind9/21
2. Type path to installation directory, for example C:\Program Files\KDE3. Choose kcachegrind from list of packagesKCacheGrind10/21
4. You can find KCacheGrind in KDE bin directory,for example C:\Program Files\kde\binKCacheGrind11/21
3. Install Webgrind
13/211. Download zip archive from http://code.google.com/p/webgrind/downloads/list2. Extract to your root www directory, for exampleC:\wamp\www\webgrind3. You can find it on http://localhost/webgrindWebgrind
4. Connect with WampServer
1. Edit your WampServer template file C:\wamp\wampmanager.tpl2. Add three new lines in [Menu.Left] section:Type: item; Caption: "KCacheGrind"; Action: run; FileName:"C:\Program Files\kde\bin\kcachegrind.exe"; Parameters: ""; Glyph: 5Type: item; Caption: "Webgrind"; Action: run; FileName: "${c_navigator}";Parameters: "http://localhost/webgrind/"; Glyph: 5Type: separator; Caption: ""WampServer15/21Check if file names are correct.
WampServer16/213. Restart WampServer4. Now You can launch KCacheGrind and Webgrind from WampServer menu5. Use it to improve performance of Your PHP based application
5. Use new features
KCacheGrind18/21Choose cachegrind fileSee calers and callee mapSwitch to relative viewSearch and group function
Webgrind19/21Choose cachegrind fileSort by type of function, count or costOpen fileSee calls and called from
Web addresses20/21Usefull web addresses:WampServerhttp://www.wampserver.com/en – homepagehttp://www.wampserver.com/dl.php – downloadXdebughttp://www.xdebug.org – product homepagehttp://www.xdebug.org/download.php – downloadKCacheGrindhttp://kcachegrind.sourceforge.net/html/Home.html – product homepageThe KDE on Windows Projecthttp://windows.kde.org – project homepagehttp://www.winkde.org/pub/kde/ports/win32/installer/kdewin-installer-gui-latest.exe – installerWebgrindhttp://code.google.com/p/webgrind – project homepagehttp://code.google.com/p/webgrind/downloads/detail?name=webgrind-release-1.0.zip – download
21/21QuestionsQuestions? Contact us!Mediovski Technologyul. Wita Stwosza 4002-661 Warsaw, Polandphone: +48 22 646 76 84e-mail: technology@mediovski.plwww: http://technology.mediovski.plJoin us:

More Related Content

What's hot (20)

PDF
Optimising Your Front End Workflow With Symfony, Twig, Bower and Gulp
Matthew Davis
 
PDF
Os Fitzpatrick Sussman Swp
oscon2007
 
PDF
Os Alrubaie
oscon2007
 
PPTX
WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)
Ericom Software
 
PDF
WebPagetest Power Users - Velocity 2014
Patrick Meenan
 
PDF
X-Debug in Php Storm
KLabCyscorpions-TechBlog
 
PDF
Martin Aspeli Extending And Customising Plone 3
Vincenzo Barone
 
PDF
WordPress Performance & Scalability
Joseph Scott
 
PDF
Open web mail setup
Chacheng Oo
 
PDF
Quick flask an intro to flask
juzten
 
PDF
WebPagetest - Good, Bad & Ugly
Aaron Peters
 
PDF
Front-end tools
Gleb Vinnikov
 
PDF
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018
Thijs Feryn
 
PDF
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018
Codemotion
 
PPTX
Google Chromebook for the Enterprise: Yeah or Meh?
Ericom Software
 
PDF
BaláZs Ree Introduction To Kss, Kinetic Style Sheets
Vincenzo Barone
 
PDF
Die .htaccess richtig nutzen
Walter Ebert
 
PDF
Rock-solid Magento Deployments (and Development)
AOE
 
PPTX
HTTPS and HTTP/2
MatthewWalker9
 
PDF
Developers, Be a Bada$$ with WP-CLI
WP Engine
 
Optimising Your Front End Workflow With Symfony, Twig, Bower and Gulp
Matthew Davis
 
Os Fitzpatrick Sussman Swp
oscon2007
 
Os Alrubaie
oscon2007
 
WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)
Ericom Software
 
WebPagetest Power Users - Velocity 2014
Patrick Meenan
 
X-Debug in Php Storm
KLabCyscorpions-TechBlog
 
Martin Aspeli Extending And Customising Plone 3
Vincenzo Barone
 
WordPress Performance & Scalability
Joseph Scott
 
Open web mail setup
Chacheng Oo
 
Quick flask an intro to flask
juzten
 
WebPagetest - Good, Bad & Ugly
Aaron Peters
 
Front-end tools
Gleb Vinnikov
 
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018
Thijs Feryn
 
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018
Codemotion
 
Google Chromebook for the Enterprise: Yeah or Meh?
Ericom Software
 
BaláZs Ree Introduction To Kss, Kinetic Style Sheets
Vincenzo Barone
 
Die .htaccess richtig nutzen
Walter Ebert
 
Rock-solid Magento Deployments (and Development)
AOE
 
HTTPS and HTTP/2
MatthewWalker9
 
Developers, Be a Bada$$ with WP-CLI
WP Engine
 

Similar to Xdebug, KCacheGrind and Webgrind with WampServer (20)

PPTX
Improving build solutions dependency management with webpack
NodeXperts
 
PPTX
25_26 (1).pptx
JawadHaider36
 
ODP
WP Sandbox Presentation WordCamp Toronto 2011
Alfred Ayache
 
PPTX
Introduction to Docker
皓鈞 張
 
PPTX
How to install laravel framework in windows
Sabina Sadykova
 
PDF
Master your java_applications_in_kubernetes
Andy Moncsek
 
PDF
Xdebug from a to x
Gennady Feldman
 
PDF
Intro to development sites and site migration
R-Cubed Design Forge
 
PDF
Magento Performance Optimization 101
Angus Li
 
PPT
Php Debugger
guest8cd374
 
DOC
Devry gsp 215 week 7 i lab networking and a tiny web server new
williamethan912
 
DOCX
Document Management: Opendocman and LAMP installation on Cent OS
Siddharth Ram Dinesh
 
PPTX
A new way to develop with WordPress!
David Sanchez
 
PDF
HTTP2
Mateus Prado
 
PDF
Command line for the beginner - Using the command line in developing for the...
Jim Birch
 
PDF
Using Docker For Development
Laura Frank Tacho
 
PDF
Joomla Manual in Compatible with XAMPP
Maulana Azad National Institute of Technology Bhopal
 
ODP
Ubuntu And Parental Controls
jasonholtzapple
 
PPTX
Laravel Crud Tutorial Basic Step by Stepy S
christopherneo4
 
PPTX
Lessons Learned in Automating Compliance for Containers
All Things Open
 
Improving build solutions dependency management with webpack
NodeXperts
 
25_26 (1).pptx
JawadHaider36
 
WP Sandbox Presentation WordCamp Toronto 2011
Alfred Ayache
 
Introduction to Docker
皓鈞 張
 
How to install laravel framework in windows
Sabina Sadykova
 
Master your java_applications_in_kubernetes
Andy Moncsek
 
Xdebug from a to x
Gennady Feldman
 
Intro to development sites and site migration
R-Cubed Design Forge
 
Magento Performance Optimization 101
Angus Li
 
Php Debugger
guest8cd374
 
Devry gsp 215 week 7 i lab networking and a tiny web server new
williamethan912
 
Document Management: Opendocman and LAMP installation on Cent OS
Siddharth Ram Dinesh
 
A new way to develop with WordPress!
David Sanchez
 
Command line for the beginner - Using the command line in developing for the...
Jim Birch
 
Using Docker For Development
Laura Frank Tacho
 
Joomla Manual in Compatible with XAMPP
Maulana Azad National Institute of Technology Bhopal
 
Ubuntu And Parental Controls
jasonholtzapple
 
Laravel Crud Tutorial Basic Step by Stepy S
christopherneo4
 
Lessons Learned in Automating Compliance for Containers
All Things Open
 
Ad

Recently uploaded (20)

PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
July Patch Tuesday
Ivanti
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Ad

Xdebug, KCacheGrind and Webgrind with WampServer

  • 1. Xdebug, KCacheGrind and Webgrindwith WampServer11 July 2010Warsaw, PolandMichał SzkodzińskiIT ManagerMediovski Technology
  • 3. Summary3/21This 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. Agenda4/21Xdebug extension for PHPKCacheGrind for WindowsWebgrind Connect KCacheGrind and Webgrind with WampServer
  • 6. 1. Download Xdebug binaries for Windows from:http://www.xdebug.org/download.phpXdebug6/21Choose 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:\wamp\bin\php\php5.3.1\ext3. Rename dll file to php_xdebug.dll
  • 7. 7/214. Add new line in Your php.ini file:extension=php_xdebug.dllzend_extension = c:\wamp\bin\php\php5.3.1\ext\php_xdebug.dllxdebug.remote_enable=1xdebug.remote_host="127.0.0.1"xdebug.remote_port=9000xdebug.remote_handler="dbgp"xdebug.remote_mode=reqxdebug.profiler_enable=1xdebug.profiler_output_dir="c:/wamp/tmp/"xdebug.collect_params=Onxdebug.show_local_vars=OnXdebugCheck if paths are correct for your WampServer configuration.
  • 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.exeKCacheGrind9/21
  • 10. 2. Type path to installation directory, for example C:\Program Files\KDE3. Choose kcachegrind from list of packagesKCacheGrind10/21
  • 11. 4. You can find KCacheGrind in KDE bin directory,for example C:\Program Files\kde\binKCacheGrind11/21
  • 13. 13/211. Download zip archive from http://code.google.com/p/webgrind/downloads/list2. Extract to your root www directory, for exampleC:\wamp\www\webgrind3. You can find it on http://localhost/webgrindWebgrind
  • 14. 4. Connect with WampServer
  • 15. 1. Edit your WampServer template file C:\wamp\wampmanager.tpl2. Add three new lines in [Menu.Left] section:Type: item; Caption: "KCacheGrind"; Action: run; FileName:"C:\Program Files\kde\bin\kcachegrind.exe"; Parameters: ""; Glyph: 5Type: item; Caption: "Webgrind"; Action: run; FileName: "${c_navigator}";Parameters: "http://localhost/webgrind/"; Glyph: 5Type: separator; Caption: ""WampServer15/21Check if file names are correct.
  • 16. WampServer16/213. Restart WampServer4. Now You can launch KCacheGrind and Webgrind from WampServer menu5. Use it to improve performance of Your PHP based application
  • 17. 5. Use new features
  • 18. KCacheGrind18/21Choose cachegrind fileSee calers and callee mapSwitch to relative viewSearch and group function
  • 19. Webgrind19/21Choose cachegrind fileSort by type of function, count or costOpen fileSee calls and called from
  • 20. Web addresses20/21Usefull web addresses:WampServerhttp://www.wampserver.com/en – homepagehttp://www.wampserver.com/dl.php – downloadXdebughttp://www.xdebug.org – product homepagehttp://www.xdebug.org/download.php – downloadKCacheGrindhttp://kcachegrind.sourceforge.net/html/Home.html – product homepageThe KDE on Windows Projecthttp://windows.kde.org – project homepagehttp://www.winkde.org/pub/kde/ports/win32/installer/kdewin-installer-gui-latest.exe – installerWebgrindhttp://code.google.com/p/webgrind – project homepagehttp://code.google.com/p/webgrind/downloads/detail?name=webgrind-release-1.0.zip – download
  • 21. 21/21QuestionsQuestions? Contact us!Mediovski Technologyul. Wita Stwosza 4002-661 Warsaw, Polandphone: +48 22 646 76 84e-mail: [email protected]: http://technology.mediovski.plJoin us: