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
77
All aboard the Service Bus @ ZGPHP
robertbasic
0
400
All aboard the Service Bus
robertbasic
1
320
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
「正の参照」と 「負の導出」で組む ハーネスエンジニアリング
cottpan
1
140
共通化で考えるべきは、実装より公開する型だった
codeegg
0
210
Performance Engineering for Everyone
elenatanasoiu
0
270
1年で人数1.5倍、PR数5.5倍増。 品質とアウトカムはどうなったか、 何が効いたか
ike002jp
0
120
OS アップデート対応の取り組み方がもっと共有されてほしい
andpad
0
110
エンジニア向け会社紹介/Findy Company Profile
findyinc
6
360k
エンジニアにデザインハーネスを 〜デザインプロセスを規定するためのハーネス〜 / Design harness from an engineer's perspective
rkaga
2
1.4k
鹿野さんに聞く!『TypeScriptコードレシピ集』で磨く実践力
tonkotsuboy_com
4
1.1k
AI時代の仕事技芸論〜ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ(スクフェス仙台 2026バージョン)
kuranuki
0
610
そのテスト、説明できますか?~LWテスト戦略FW~のご紹介
nakahara
0
200
ECSアプリログをFireLensでコスト削減しようとしたけど諦めた話 in Fargate×Node.js
akihisaikeda
2
4.2k
任せる範囲はこう広がった / How the Scope of AI Delegation Has Expanded
nrslib
1
250
Featured
See All Featured
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
220
How to build a perfect <img>
jonoalderson
1
5.8k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
190
ラッコキーワード サービス紹介資料
rakko
1
3.9M
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Optimising Largest Contentful Paint
csswizardry
37
3.8k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
460
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
The Cost Of JavaScript in 2023
addyosmani
55
10k
The Curse of the Amulet
leimatthew05
2
13k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
220
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
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?