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
Profilisanje koda sa Xdebug i KCachegrind
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
robertbasic
February 21, 2017
Programming
220
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
79
All aboard the Service Bus @ ZGPHP
robertbasic
0
410
All aboard the Service Bus
robertbasic
1
330
Build your career one contribution at a time
robertbasic
0
160
Code profiling with Xdebug and Kcachegrind
robertbasic
0
210
Mockery
robertbasic
3
830
Zend Framework 2
robertbasic
4
350
Introduction to Zend Framework 1
robertbasic
2
280
Other Decks in Programming
See All in Programming
「人を評価する AI」の設計と実装
ryoyanara
0
150
komatsuna「分散システムにおけるバグ分析手法」
komatsunaqa
0
230
【やさしく解説 設計編・中級 #4】ルールの寿命と、システムの年輪
panda728
PRO
2
180
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
1
120
20260722_microCMSで考える、AI時代のコンテンツ運用設計
yosh1
0
340
Google Apps Script で Ruby を動かす
kawahara
0
130
php-fpmのプロセスが枯渇した日-調査・対処・そして本当にやるべきだったこと-
shibuchaaaan
0
210
「寝てても仕事が進む」Claude Codeで組む第二の脳
tomoyafujita2016
0
290
What's New in Android 2026
veronikapj
0
250
今さら聞けない .NET CLI
htkym
0
180
【SRE NEXT 2026 Lunch Session】一人目専任SREの立ち上げを加速する ― AIと進めたオンボーディングで2分を0.04秒にした話
pkshadeck
PRO
0
3.5k
OpenSpecのproposalにbrainstormingを持たせてみた
tigertora7571
1
200
Featured
See All Featured
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
760
Writing Fast Ruby
sferik
630
63k
The Cult of Friendly URLs
andyhume
79
7k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
920
Embracing the Ebb and Flow
colly
88
5.1k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
440
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Docker and Python
trallard
47
4.1k
Utilizing Notion as your number one productivity tool
mfonobong
4
500
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
630
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?