Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Profilisanje koda sa Xdebug i KCachegrind
Search
robertbasic
February 21, 2017
Programming
240
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Profilisanje koda sa Xdebug i KCachegrind
robertbasic
February 21, 2017
More Decks by robertbasic
See All by robertbasic
All aboard the Service Bus!
robertbasic
1
1.8k
Build your career one contribution at a time
robertbasic
1
92
All aboard the Service Bus @ ZGPHP
robertbasic
0
430
All aboard the Service Bus
robertbasic
1
340
Build your career one contribution at a time
robertbasic
0
170
Code profiling with Xdebug and Kcachegrind
robertbasic
0
230
Mockery
robertbasic
4
870
Zend Framework 2
robertbasic
4
360
Introduction to Zend Framework 1
robertbasic
2
300
Other Decks in Programming
See All in Programming
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.4k
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
1.7k
Web Framework Benchmark Battle 2026, Any%
a_matsuda
3
3.1k
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
2.2k
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
4
1.5k
オーケストレーション記述言語 Katari
yukikurage
0
240
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
6
2.2k
Moscow Python Meetup №112. Как поселить ИИ агентов в event driven архитектуре
moscowdjango
PRO
0
110
AmebaブログはKMPから卒業します
kmars0605
0
330
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
2
290
小さなアプリを作って公開するまで
onozaty
0
140
Python Lambdaにおけるテストしやすい設計とAI支援の活用 / Designing Testable Python Lambda Functions with AI
kitano_yuichi
1
300
Featured
See All Featured
Darren the Foodie - Storyboard
khoart
PRO
4
4.1k
Are puppies a ranking factor?
jonoalderson
2
4.1k
Testing 201, or: Great Expectations
jmmastey
46
8.4k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Into the Great Unknown - MozCon
thekraken
41
2.8k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
390
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
350
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
450
Crafting Experiences
bethany
1
430
Transcript
Robert Bašić ~ PHPSrbija #20 Profilisanje koda sa Xdebug i
KCachegrind Robert Bašić https://robertbasic.com/ @robertbasic
Robert Bašić ~ PHPSrbija #20 Performanse su bitne • UX
- User Experience • Korisnici • Kompanija, brend • Operativni troškovi
Robert Bašić ~ PHPSrbija #20 Šta utiče na brzinu? •
Hardware servera • Upiti ka bazama • Broj HTTP requestova
Robert Bašić ~ PHPSrbija #20 Kod nikad nije usko grlo…
ili?
Robert Bašić ~ PHPSrbija #20 Alati zanata Xdebug • Nije
samo za debugging KCachegrind • Prikazivanje profiling podataka
Robert Bašić ~ PHPSrbija #20 Xdebug podešavanja
Robert Bašić ~ PHPSrbija #20 • proj.local/slow-page?XDEBUG_PROFILE=1 • Firefox: The
easiest Xdebug • Chrome: Xdebug helper Pokretanje profilinga
Robert Bašić ~ PHPSrbija #20 KCachegrind
Robert Bašić ~ PHPSrbija #20 Broj poziva
Robert Bašić ~ PHPSrbija #20 Ko je kriv?
Robert Bašić ~ PHPSrbija #20 Ne, stvarno, ko je kriv?
Robert Bašić ~ PHPSrbija #20 Najlakše je prebaciti krivicu na
druge...
Robert Bašić ~ PHPSrbija #20 Svi su krivi!
Robert Bašić ~ PHPSrbija #20 Graf, da vidiš
Robert Bašić ~ PHPSrbija #20 Context, da shvatiš
Robert Bašić ~ PHPSrbija #20 Popravljanje problema performansi Ovo je
do tebe
Robert Bašić ~ PHPSrbija #20 Nekoliko saveta • Najveći uticaj,
najmanje rada • Profile posle svake promene • Izbegavajte preteranu optimizaciju • Naučite da koristite EXPLAIN
Robert Bašić ~ PHPSrbija #20 Saveti za korišćenje Xdebuga i
KCachegrinda • Xdebug – xdebug.profiler_output_dir – xdebug.profiler_output_name – cachegrind.out.%t.%R – Xdebug laže! • KCachegrind – Instalirajte graphviz – Koristite % relative – Uključite Cycle detection – Settings > Configure KCachegrind > Annotations > Add source folder
Robert Bašić ~ PHPSrbija #20 Ostali alati • WinCacheGrind, Webgrind
• XHProf • Blackfire.io
Robert Bašić ~ PHPSrbija #20 Hvala! Pitanja?