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
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
82
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
4
840
Zend Framework 2
robertbasic
4
350
Introduction to Zend Framework 1
robertbasic
2
280
Other Decks in Programming
See All in Programming
AI時代に学ぶ 好きなルール 嫌いなルール Linter編
shorty5121
0
660
Hello, Hiroshima Geospatial Data! — Exploring DoboX with Python
ra0kley
0
140
初めての模倣学習とVLA
natsutan
0
370
私のClaude Code活用法 (個人開発編) - PHPerKaigi mini #4(2026/08/24)
panda_program
1
190
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
3
460
片田舎のおっさん、 Swift Buildのダイアモンド問題解決の不具合修正PRを出すが、解決方法がキャッシュをしないようにすることであり、ビルド時間が伸びると言われてマージされないので高速化もする/swiftbuild
yimajo
0
330
楽しそうなつよつよエンジニアと目が死んでる僕/A brilliant engineer having a blast, and dead-eyed me.
3l4l5
2
270
Deep dive into the select statement (GopherCon UK)
jespino
0
160
AIと壁打ちしながら進めるコスト管理
fufuhu
2
1.9k
AWS Transform Customによる Spring Boot 2.xから4.xへのVerUp
satoshi256kbyte
2
120
Claude CodeとAgentCore Gatewayを繋ぐ際の認証認可 / Authentication and authorization when connecting Claude Code with AgentCore Gateway
har1101
2
410
LLMは4年分のCompose移行を再現できるのか?実プロダクト279件のXMLで探る自動化の境界線
makun
0
230
Featured
See All Featured
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
64k
Mobile First: as difficult as doing things right
swwweet
225
10k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
640
Being A Developer After 40
akosma
91
590k
Google's AI Overviews - The New Search
badams
0
1.6k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
490
Writing Fast Ruby
sferik
630
63k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
570
For a Future-Friendly Web
brad_frost
183
10k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
500
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
460
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
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?