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
74
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
200
Mockery
robertbasic
3
820
Zend Framework 2
robertbasic
4
350
Introduction to Zend Framework 1
robertbasic
2
280
Other Decks in Programming
See All in Programming
Language Server 使ってる? 〜VSCode と Zed の場合〜 / Are you using a Language Server? ~For VS Code and Zed~
handlename
0
790
AI時代のUIはどこへ行く?その2!
yusukebe
22
7.4k
不変条件と整合性境界—ビジネスが決める設計判断と実現パターン / Invariants and Consistency Boundaries
nrslib
14
5.6k
New "Type" system on PicoRuby
pocke
1
970
メソッドのジェネリクスでGoの夢は広がるか? / Kyoto.go #65
utgwkk
3
840
Spring Security 実践 ─ GraphQL APIで実務に役立つ 認証・認可 を学ぶ
wagyu
0
250
C# and C++ Interoperability - cho-dotnetnew
harukasao
0
260
「エンジニアインターン、どうやって取った?」準備のリアルを語るLT会 Progate BAR
akiomatic
0
140
Honoでのサプライチェーン侵害対策 〜 3つのライブラリに学ぶ
yusukebe
6
1.3k
RTSPクライアントを自作してみた話
simotin13
0
610
TAKTでAI駆動開発の品質を設計する
j5ik2o
7
1.4k
Creating Composable Callables in Contemporary C++
rollbear
0
150
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Designing for humans not robots
tammielis
254
26k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
390
The agentic SEO stack - context over prompts
schlessera
0
820
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
950
Mobile First: as difficult as doing things right
swwweet
225
10k
4 Signs Your Business is Dying
shpigford
187
22k
Context Engineering - Making Every Token Count
addyosmani
9
970
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
340
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
1.7k
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?