Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
xdebug Profiler
Search
Peter Tilsen
June 23, 2015
Technology
0
44
xdebug Profiler
Short overview of xdebug profiler usage supported by qcachegrind
Peter Tilsen
June 23, 2015
Tweet
Share
More Decks by Peter Tilsen
See All by Peter Tilsen
Why did we choose to use GoLang
petertilsen
0
170
xdebug configuration
petertilsen
0
75
xdebug
petertilsen
0
61
Other Decks in Technology
See All in Technology
IaCジェネレーターとBedrockで詳細設計書を生成してみた
tsukasa_ishimaru
4
890
Gitlab本から学んだこと - そーだいなるプレイバック / gitlab-book
soudai
7
1.3k
エンジニア候補者向け資料2024.04.24.pdf
macloud
0
3.4k
TechFeed Experts Night#27 〜 フロントエンドフレームワーク最前線 (Svelte)
baseballyama
2
600
今さら聞けないDocker入門 〜 Dockerfileのベストプラクティス編
devops_vtj
10
2.4k
Next.js に疲れた私は Vue3 に癒やされた
akagire
0
140
リテール金融(キャッシュレス・ネット銀行・ネット証券)の競争環境と経済圏
8maki
0
1.6k
DMM.com アルファ室採用案内資料
hsugita
1
230
一生覚えておきたい「システム開発=コミュニケーション」〜初めての実務案件振り返りLT〜
maimyyym
2
320
2023年度にEMとして頑張ったこと
ikefukurou777
0
100
障害対応をちょっとずつよくしていくための 演習の作りかた
heleeen
1
1.7k
【SORACOM UG 東海】あらゆるモノがつながる社会へ、IoT と SORACOM
soracom
PRO
1
150
Featured
See All Featured
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
104
6.6k
GraphQLの誤解/rethinking-graphql
sonatard
55
9.3k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
221
21k
Debugging Ruby Performance
tmm1
70
11k
Building Better People: How to give real-time feedback that sticks.
wjessup
356
18k
The Straight Up "How To Draw Better" Workshop
denniskardys
228
130k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
33
6k
Side Projects
sachag
451
41k
Navigating Team Friction
lara
179
13k
The Language of Interfaces
destraynor
151
23k
Bash Introduction
62gerente
605
210k
How to Ace a Technical Interview
jacobian
273
22k
Transcript
xdebug Profiler
xdebug Profiler • What is this and what is it
good for? • Installation • Configuration • xdebug Profiler plugin • Analysers • Qcachegrind • Demo
xdebug Profiler What is this? • Build in extension of
debug • Helps finding performance leaks • Helps inspecting code execution
xdebug Profiler What is this? • Three major functions •
Monitor execution time of each and all methods called during one request • Visualise most consuming execution (Callee Map) • Visualise call history (Call Graph)
Installation • Part of xdebug (http://xdebug.org/) • Multiple ways to
install • Precompiled package for windows, PEAR/PECL, source
Configuration • Configuration within php.ini or php.d/xdebug.ini or any other
php.d/* script
Configuration remote profiling • Enable remote profiling debug.profiler_enable_trigger=1
• requires remote enabler • Recommend to use browser plugin xdebug enabler
Configuration cachegrind.out • Params for additional verbosity cachegrind.out.%R-%s-%t •
R $_SERVER[‘REQUEST_URI'] • s script name • t timestamp (seconds) • see http://xdebug.org/docs/ all_settings#trace_output_name for compete list
xdebug Profiler plugin • Easy to enable your profiling on
demand
Analysers • Platform/OS related analysers ported from kcachegrind • wincachegrind
• kcachegrind • qcachegrind • Further analysers • phpstrom (embedded plugin) • etc.
Analysers qcachegrind
Analysers qcachegrind • What should I take a closer look
at? • Time • Callee Map • Call Graph
Analysers qcachegrind • Demo