Submit Search
Upload
Profiling with Xhprof
•
2 likes
•
2,558 views
Tim Massey
Follow
Video online: http://www.youtube.com/watch?v=PY1RgLRfatw&feature=youtu.be
Read less
Read more
Technology
Report
Share
Report
Share
1 of 10
Download now
Download to read offline
Recommended
GHCソースコード読みのススメ
GHCソースコード読みのススメ
Kiwamu Okabe
Plone Conference 2008 Lightning Talk Static Zope Rpx
Plone Conference 2008 Lightning Talk Static Zope Rpx
Paris, France
Simple php backdoor_by_dk
Simple php backdoor_by_dk
Stan Adrian
Memory Management in WordPress
Memory Management in WordPress
Konstantin Kovshenin
Development and practical use of CLI in perl 6
Development and practical use of CLI in perl 6
risou
わかった気になるgitit-0.8
わかった気になるgitit-0.8
Kiwamu Okabe
Puppet Camp Amsterdam 2015: Manifests of Future Past
Puppet Camp Amsterdam 2015: Manifests of Future Past
Puppet
Distribuido
Distribuido
Jose Rojas
Recommended
GHCソースコード読みのススメ
GHCソースコード読みのススメ
Kiwamu Okabe
Plone Conference 2008 Lightning Talk Static Zope Rpx
Plone Conference 2008 Lightning Talk Static Zope Rpx
Paris, France
Simple php backdoor_by_dk
Simple php backdoor_by_dk
Stan Adrian
Memory Management in WordPress
Memory Management in WordPress
Konstantin Kovshenin
Development and practical use of CLI in perl 6
Development and practical use of CLI in perl 6
risou
わかった気になるgitit-0.8
わかった気になるgitit-0.8
Kiwamu Okabe
Puppet Camp Amsterdam 2015: Manifests of Future Past
Puppet Camp Amsterdam 2015: Manifests of Future Past
Puppet
Distribuido
Distribuido
Jose Rojas
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
SmartTools
Php talk
Php talk
Jamil Ramsey
PHP and Databases
PHP and Databases
Things Lab
Chap 5 php files part-2
Chap 5 php files part-2
monikadeshmane
C99[2]
C99[2]
guest8914af
17 sessions
17 sessions
Abhijit Gaikwad
mongodb-introduction
mongodb-introduction
Tse-Ching Ho
Dc kyiv2010 jun_08
Dc kyiv2010 jun_08
Andrii Podanenko
PHP Programming: Intro
PHP Programming: Intro
Things Lab
Cache'owanie danych w PHP
Cache'owanie danych w PHP
Patryk Jar
File-I/O -- ist doch ganz einfach, oder?
File-I/O -- ist doch ganz einfach, oder?
Christian Kauhaus
MongoDB: How it Works
MongoDB: How it Works
Mike Dirolf
extending-php
extending-php
tutorialsruby
Sahu
Sahu
sahul azzez m.i
5分で始める XS - tsukuba.xs#1
5分で始める XS - tsukuba.xs#1
Yuji Shimada
Accessing data from a simple post by karan chanana
Accessing data from a simple post by karan chanana
karan chanana
Your Team Is Frustraited
Your Team Is Frustraited
Rashi Gupta
Corespring
Corespring
mrinalbagaria
Etoquette ba 381_presentation_use_this_one
Etoquette ba 381_presentation_use_this_one
Shaolins Prem
Why is internet’s Democracy Rebirth so Sexy?
Why is internet’s Democracy Rebirth so Sexy?
Tomislav Korman
Projekt E- građani: Središnji državni portal
Projekt E- građani: Središnji državni portal
Tomislav Korman
pre launch project in Bhiwadi 9717762246
pre launch project in Bhiwadi 9717762246
Adore Global Pvt. Ltd
More Related Content
What's hot
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
SmartTools
Php talk
Php talk
Jamil Ramsey
PHP and Databases
PHP and Databases
Things Lab
Chap 5 php files part-2
Chap 5 php files part-2
monikadeshmane
C99[2]
C99[2]
guest8914af
17 sessions
17 sessions
Abhijit Gaikwad
mongodb-introduction
mongodb-introduction
Tse-Ching Ho
Dc kyiv2010 jun_08
Dc kyiv2010 jun_08
Andrii Podanenko
PHP Programming: Intro
PHP Programming: Intro
Things Lab
Cache'owanie danych w PHP
Cache'owanie danych w PHP
Patryk Jar
File-I/O -- ist doch ganz einfach, oder?
File-I/O -- ist doch ganz einfach, oder?
Christian Kauhaus
MongoDB: How it Works
MongoDB: How it Works
Mike Dirolf
extending-php
extending-php
tutorialsruby
Sahu
Sahu
sahul azzez m.i
5分で始める XS - tsukuba.xs#1
5分で始める XS - tsukuba.xs#1
Yuji Shimada
Accessing data from a simple post by karan chanana
Accessing data from a simple post by karan chanana
karan chanana
What's hot
(16)
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
Php talk
Php talk
PHP and Databases
PHP and Databases
Chap 5 php files part-2
Chap 5 php files part-2
C99[2]
C99[2]
17 sessions
17 sessions
mongodb-introduction
mongodb-introduction
Dc kyiv2010 jun_08
Dc kyiv2010 jun_08
PHP Programming: Intro
PHP Programming: Intro
Cache'owanie danych w PHP
Cache'owanie danych w PHP
File-I/O -- ist doch ganz einfach, oder?
File-I/O -- ist doch ganz einfach, oder?
MongoDB: How it Works
MongoDB: How it Works
extending-php
extending-php
Sahu
Sahu
5分で始める XS - tsukuba.xs#1
5分で始める XS - tsukuba.xs#1
Accessing data from a simple post by karan chanana
Accessing data from a simple post by karan chanana
Viewers also liked
Your Team Is Frustraited
Your Team Is Frustraited
Rashi Gupta
Corespring
Corespring
mrinalbagaria
Etoquette ba 381_presentation_use_this_one
Etoquette ba 381_presentation_use_this_one
Shaolins Prem
Why is internet’s Democracy Rebirth so Sexy?
Why is internet’s Democracy Rebirth so Sexy?
Tomislav Korman
Projekt E- građani: Središnji državni portal
Projekt E- građani: Središnji državni portal
Tomislav Korman
pre launch project in Bhiwadi 9717762246
pre launch project in Bhiwadi 9717762246
Adore Global Pvt. Ltd
Gao report
Gao report
Carlos Carvalho
Comparison contrast
Comparison contrast
Les Davy
อติมา อุ่นจิตร
อติมา อุ่นจิตร
อติมา อุ่นจิตร
MBA724 s6 w1 experimental design
MBA724 s6 w1 experimental design
Rachel Chung
47553 c52 14fc-4397-89eca7539c013374
47553 c52 14fc-4397-89eca7539c013374
Carlos Carvalho
บทที่ 11
บทที่ 11
อติมา อุ่นจิตร
Definition of Matter Lab + Phase Change- Day 2
Definition of Matter Lab + Phase Change- Day 2
jmori1
Guide leaving your small business
Guide leaving your small business
Javier Gelada López
CSS3 Transitions
CSS3 Transitions
hstryk
Tebak Gambar
Tebak Gambar
Wenni Meliana
Ms word shortcut keys
Ms word shortcut keys
Christian Emmanuel Muñoz
Real HCG Drops For Real Benefits
Real HCG Drops For Real Benefits
socialbook
S t o r y b o a r d
S t o r y b o a r d
Hector Obregon
Sportovi vo uk mapi
Sportovi vo uk mapi
jasmina ivanova
Viewers also liked
(20)
Your Team Is Frustraited
Your Team Is Frustraited
Corespring
Corespring
Etoquette ba 381_presentation_use_this_one
Etoquette ba 381_presentation_use_this_one
Why is internet’s Democracy Rebirth so Sexy?
Why is internet’s Democracy Rebirth so Sexy?
Projekt E- građani: Središnji državni portal
Projekt E- građani: Središnji državni portal
pre launch project in Bhiwadi 9717762246
pre launch project in Bhiwadi 9717762246
Gao report
Gao report
Comparison contrast
Comparison contrast
อติมา อุ่นจิตร
อติมา อุ่นจิตร
MBA724 s6 w1 experimental design
MBA724 s6 w1 experimental design
47553 c52 14fc-4397-89eca7539c013374
47553 c52 14fc-4397-89eca7539c013374
บทที่ 11
บทที่ 11
Definition of Matter Lab + Phase Change- Day 2
Definition of Matter Lab + Phase Change- Day 2
Guide leaving your small business
Guide leaving your small business
CSS3 Transitions
CSS3 Transitions
Tebak Gambar
Tebak Gambar
Ms word shortcut keys
Ms word shortcut keys
Real HCG Drops For Real Benefits
Real HCG Drops For Real Benefits
S t o r y b o a r d
S t o r y b o a r d
Sportovi vo uk mapi
Sportovi vo uk mapi
Similar to Profiling with Xhprof
PHP selber bauen
PHP selber bauen
Walter Ebert
Creating a phar
Creating a phar
Adrian Cardenas
EC CUBE 3.0.x installation guide
EC CUBE 3.0.x installation guide
Nguyễn Đoàn Quốc Phong
2012 coscup - Build your PHP application on Heroku
2012 coscup - Build your PHP application on Heroku
ronnywang_tw
PHP Profiling/performance
PHP Profiling/performance
Nicolas Degardin
Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04
baabtra.com - No. 1 supplier of quality freshers
On secure application of PHP wrappers
On secure application of PHP wrappers
Positive Hack Days
Xdebug from a to x
Xdebug from a to x
Gennady Feldman
Fun with processes - lightning talk
Fun with processes - lightning talk
Paweł Dawczak
Key features PHP 5.3 - 5.6
Key features PHP 5.3 - 5.6
Federico Damián Lozada Mosto
Out of the Box Replication in Postgres 9.4(pgconfsf)
Out of the Box Replication in Postgres 9.4(pgconfsf)
Denish Patel
Xdebug and Drupal8 tests (PhpUnit and Simpletest)
Xdebug and Drupal8 tests (PhpUnit and Simpletest)
Francisco José Seva Mora
Hadoop installation on windows
Hadoop installation on windows
habeebulla g
02 Hadoop deployment and configuration
02 Hadoop deployment and configuration
Subhas Kumar Ghosh
How to create a secured multi tenancy for clustered ML with JupyterHub
How to create a secured multi tenancy for clustered ML with JupyterHub
Tiago Simões
Installing odoo v8 from github
Installing odoo v8 from github
Antony Gitomeh
PSR-7 and PSR-15, why can't you ignore them
PSR-7 and PSR-15, why can't you ignore them
Sérgio Rafael Siqueira
PHP5.5 is Here
PHP5.5 is Here
julien pauli
Make PHP Extension
Make PHP Extension
Nyo Chou
GettingStartedWithPHP
GettingStartedWithPHP
Nat Weerawan
Similar to Profiling with Xhprof
(20)
PHP selber bauen
PHP selber bauen
Creating a phar
Creating a phar
EC CUBE 3.0.x installation guide
EC CUBE 3.0.x installation guide
2012 coscup - Build your PHP application on Heroku
2012 coscup - Build your PHP application on Heroku
PHP Profiling/performance
PHP Profiling/performance
Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04
On secure application of PHP wrappers
On secure application of PHP wrappers
Xdebug from a to x
Xdebug from a to x
Fun with processes - lightning talk
Fun with processes - lightning talk
Key features PHP 5.3 - 5.6
Key features PHP 5.3 - 5.6
Out of the Box Replication in Postgres 9.4(pgconfsf)
Out of the Box Replication in Postgres 9.4(pgconfsf)
Xdebug and Drupal8 tests (PhpUnit and Simpletest)
Xdebug and Drupal8 tests (PhpUnit and Simpletest)
Hadoop installation on windows
Hadoop installation on windows
02 Hadoop deployment and configuration
02 Hadoop deployment and configuration
How to create a secured multi tenancy for clustered ML with JupyterHub
How to create a secured multi tenancy for clustered ML with JupyterHub
Installing odoo v8 from github
Installing odoo v8 from github
PSR-7 and PSR-15, why can't you ignore them
PSR-7 and PSR-15, why can't you ignore them
PHP5.5 is Here
PHP5.5 is Here
Make PHP Extension
Make PHP Extension
GettingStartedWithPHP
GettingStartedWithPHP
Recently uploaded
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Michael W. Hawkins
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Paola De la Torre
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Malak Abu Hammad
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
HostedbyConfluent
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Scott Keck-Warren
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Pooja Nehwal
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
soniya singh
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Allon Mureinik
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
Recently uploaded
(20)
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Profiling with Xhprof
1.
Profiling with XHProf
2.
Installing ● sudo pear
upgrade pear ● sudo pecl install -f xhprof ● extension=xhprof.so (in php.ini) ● sudo /etc/init.d/apache2 restart ● Also install graphviz...
3.
Completing install with
XHprof UI ● Clone the repo! ● Create database. ● Create table (look in the code). ● Adjust the config.php ● Tell your PHP scripts to profile.
4.
Collecting profile data ●
Enable: ○ xhprof_enable($flags); ● Collect: ○ $data = xhprof_disable();
5.
● Globally: ○ .htaccess
&/or php.ini ○ auto_prepend_file = “header.php”; ○ auto_append_file = “footer.php”; Collecting profile data
6.
<?php // header.php xhprof_enable(XHPROF_FLAGS_CPU
| XHPROF_FLAGS_MEMORY); <?php // footer.php require_once '/home/tim/Clones/xhprof/xhprof_lib/config.php'; include_once '/home/tim/Clones/xhprof/xhprof_lib/utils/xhprof_lib.php'; include_once '/home/tim/Clones/xhprof/xhprof_lib/utils/xhprof_runs.php'; public function record() { global $_xhprof; // This wasn’t my idea $profile = xhprof_disable(); $xhprof = new XHProfRuns_Default(); $xhprof->save_run($profile, $_xhprof['namespace'], null, $_xhprof); } register_shutdown_function('record');
7.
Interpreting data ● Gui
tool Xhprof UI: ○ Looks dated. ○ “Interesting” code. ○ Works well! ● Others: ○ xhprof.io ○ xhgui
8.
Demo time ● Siege. ●
Hardest hit, most expensive. ● Plot over time. ● Compare two runs. ● Call graphs!!!
9.
Disclaimer ● Siege isn’t
really profiling the “real” world. ● Be careful not to DOS production... ● xhprof can be run in production (I haven’ t).
10.
@_massey Questions?
Download now