SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Xdebug, KCacheGrind and Webgrindwith WampServer 11 July 2010 Warsaw, Poland Michał Szkodziński IT Manager Mediovski Technology
Summary
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.
Agenda 4/21 Xdebug extension for PHP KCacheGrind for Windows Webgrind  Connect KCacheGrind and Webgrind with WampServer
1. Install Xdebug
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:ampinhphp5.3.1xt 3. Rename dll file to php_xdebug.dll
7/21 4. Add new line in Your php.ini file: extension=php_xdebug.dll zend_extension = c:ampinhphp5.3.1xthp_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.
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.exe KCacheGrind 9/21
2. Type path to installation directory, for example C:rogram FilesDE 3. Choose kcachegrind from list of packages KCacheGrind 10/21
4. You can find KCacheGrind in KDE bin directory,for example C:rogram Filesdein KCacheGrind 11/21
3. Install Webgrind
13/21 1. Download zip archive from http://code.google.com/p/webgrind/downloads/list 2. Extract to your root www directory, for exampleC:ampwwebgrind 3. You can find it on http://localhost/webgrind Webgrind
4. Connect with WampServer
1. Edit your WampServer template file C:ampampmanager.tpl 2. Add three new lines in [Menu.Left] section: Type: item; Caption: "KCacheGrind"; Action: run; FileName:"C:rogram Filesdeincachegrind.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.
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
5. Use new features
KCacheGrind 18/21 Choose cachegrind file See calers and callee map Switch to relative view Search and group function
Webgrind 19/21 Choose cachegrind file Sort by type of function, count or cost Open file See calls and called from
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 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:

Weitere ähnliche Inhalte

Was ist angesagt?

Os Fitzpatrick Sussman Swp
Os Fitzpatrick Sussman SwpOs Fitzpatrick Sussman Swp
Os Fitzpatrick Sussman Swp
oscon2007
 
WordPress Performance & Scalability
WordPress Performance & ScalabilityWordPress Performance & Scalability
WordPress Performance & Scalability
Joseph Scott
 

Was ist angesagt? (20)

Optimising Your Front End Workflow With Symfony, Twig, Bower and Gulp
Optimising Your Front End Workflow With Symfony, Twig, Bower and GulpOptimising Your Front End Workflow With Symfony, Twig, Bower and Gulp
Optimising Your Front End Workflow With Symfony, Twig, Bower and Gulp
 
Os Fitzpatrick Sussman Swp
Os Fitzpatrick Sussman SwpOs Fitzpatrick Sussman Swp
Os Fitzpatrick Sussman Swp
 
Os Alrubaie
Os AlrubaieOs Alrubaie
Os Alrubaie
 
WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)
WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)
WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)
 
WebPagetest Power Users - Velocity 2014
WebPagetest Power Users - Velocity 2014WebPagetest Power Users - Velocity 2014
WebPagetest Power Users - Velocity 2014
 
X-Debug in Php Storm
X-Debug in Php StormX-Debug in Php Storm
X-Debug in Php Storm
 
Martin Aspeli Extending And Customising Plone 3
Martin Aspeli   Extending And Customising Plone 3Martin Aspeli   Extending And Customising Plone 3
Martin Aspeli Extending And Customising Plone 3
 
WordPress Performance & Scalability
WordPress Performance & ScalabilityWordPress Performance & Scalability
WordPress Performance & Scalability
 
Open web mail setup
Open web mail setupOpen web mail setup
Open web mail setup
 
Quick flask an intro to flask
Quick flask   an intro to flaskQuick flask   an intro to flask
Quick flask an intro to flask
 
WebPagetest - Good, Bad & Ugly
WebPagetest - Good, Bad & UglyWebPagetest - Good, Bad & Ugly
WebPagetest - Good, Bad & Ugly
 
Front-end tools
Front-end toolsFront-end tools
Front-end tools
 
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018
 
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018
 
Google Chromebook for the Enterprise: Yeah or Meh?
Google Chromebook for the Enterprise: Yeah or Meh?Google Chromebook for the Enterprise: Yeah or Meh?
Google Chromebook for the Enterprise: Yeah or Meh?
 
BaláZs Ree Introduction To Kss, Kinetic Style Sheets
BaláZs Ree   Introduction To Kss, Kinetic Style SheetsBaláZs Ree   Introduction To Kss, Kinetic Style Sheets
BaláZs Ree Introduction To Kss, Kinetic Style Sheets
 
Die .htaccess richtig nutzen
Die .htaccess richtig nutzenDie .htaccess richtig nutzen
Die .htaccess richtig nutzen
 
Rock-solid Magento Deployments (and Development)
Rock-solid Magento Deployments (and Development)Rock-solid Magento Deployments (and Development)
Rock-solid Magento Deployments (and Development)
 
HTTPS and HTTP/2
HTTPS and HTTP/2HTTPS and HTTP/2
HTTPS and HTTP/2
 
Developers, Be a Bada$$ with WP-CLI
Developers, Be a Bada$$ with WP-CLIDevelopers, Be a Bada$$ with WP-CLI
Developers, Be a Bada$$ with WP-CLI
 

Ähnlich wie Xdebug, KCacheGrind and Webgrind with WampServer

Ähnlich wie Xdebug, KCacheGrind and Webgrind with WampServer (20)

Improving build solutions dependency management with webpack
Improving build solutions  dependency management with webpackImproving build solutions  dependency management with webpack
Improving build solutions dependency management with webpack
 
25_26 (1).pptx
25_26 (1).pptx25_26 (1).pptx
25_26 (1).pptx
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
How to install laravel framework in windows
How to install laravel framework in windowsHow to install laravel framework in windows
How to install laravel framework in windows
 
Master your java_applications_in_kubernetes
Master your java_applications_in_kubernetesMaster your java_applications_in_kubernetes
Master your java_applications_in_kubernetes
 
Xdebug from a to x
Xdebug from a to xXdebug from a to x
Xdebug from a to x
 
Intro to development sites and site migration
Intro to development sites and site migrationIntro to development sites and site migration
Intro to development sites and site migration
 
Magento Performance Optimization 101
Magento Performance Optimization 101Magento Performance Optimization 101
Magento Performance Optimization 101
 
Php Debugger
Php DebuggerPhp Debugger
Php Debugger
 
Devry gsp 215 week 7 i lab networking and a tiny web server new
Devry gsp 215 week 7 i lab networking and a tiny web server newDevry gsp 215 week 7 i lab networking and a tiny web server new
Devry gsp 215 week 7 i lab networking and a tiny web server new
 
Document Management: Opendocman and LAMP installation on Cent OS
Document Management: Opendocman and LAMP installation on Cent OSDocument Management: Opendocman and LAMP installation on Cent OS
Document Management: Opendocman and LAMP installation on Cent OS
 
A new way to develop with WordPress!
A new way to develop with WordPress!A new way to develop with WordPress!
A new way to develop with WordPress!
 
HTTP2
HTTP2HTTP2
HTTP2
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
Using Docker For Development
Using Docker For DevelopmentUsing Docker For Development
Using Docker For Development
 
Joomla Manual in Compatible with XAMPP
Joomla Manual in Compatible with XAMPPJoomla Manual in Compatible with XAMPP
Joomla Manual in Compatible with XAMPP
 
Ubuntu And Parental Controls
Ubuntu And Parental ControlsUbuntu And Parental Controls
Ubuntu And Parental Controls
 
Lessons Learned in Automating Compliance for Containers
Lessons Learned in Automating Compliance for ContainersLessons Learned in Automating Compliance for Containers
Lessons Learned in Automating Compliance for Containers
 
Symfony2 for Midgard Developers
Symfony2 for Midgard DevelopersSymfony2 for Midgard Developers
Symfony2 for Midgard Developers
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Kürzlich hochgeladen (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 

Xdebug, KCacheGrind and Webgrind with WampServer

  • 1. Xdebug, KCacheGrind and Webgrindwith WampServer 11 July 2010 Warsaw, Poland Michał Szkodziński IT Manager Mediovski Technology
  • 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
  • 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:ampinhphp5.3.1xt 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:ampinhphp5.3.1xthp_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.
  • 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:rogram FilesDE 3. Choose kcachegrind from list of packages KCacheGrind 10/21
  • 11. 4. You can find KCacheGrind in KDE bin directory,for example C:rogram Filesdein KCacheGrind 11/21
  • 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:ampwwebgrind 3. You can find it on http://localhost/webgrind Webgrind
  • 14. 4. Connect with WampServer
  • 15. 1. Edit your WampServer template file C:ampampmanager.tpl 2. Add three new lines in [Menu.Left] section: Type: item; Caption: "KCacheGrind"; Action: run; FileName:"C:rogram Filesdeincachegrind.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: