PHPを見える化する

+3

No comments posted yet

Comments

Slide 1

PHPを見える化する PHP Visualization 2009/09/05 10th PHP Conference 新原 雅司

Slide 2

■Self 新原雅司(Masashi Shinbara) @shin1x1 [Twitter/Wassr etc] 1×1株式会社 関西在住 勉強会とか PHP3から

Slide 3

■Services http://follow-ok.in/ findTwitter OpenSource Twitter Search Searvice http://find-twitter.in/ http://github.com/shin1x1/findTwitter/tree/master

Slide 4

■This Presentation Target  audience PHP Proficiency [★☆☆] PHP Version 5.2.10

Slide 5

■Agenda Valiable Profile Function Trace

Slide 6

■Valiable

Slide 7

■Basic echo print_r var_dump

Slide 8

■Mania debug_zval_dump refcount value retruned

Slide 9

■Inside zval [Zend/zend.h] struct _zval_struct { zvalue_value value; zend_uint refcount; zend_uchar type; zend_uchar is_ref; }; type

Slide 10

■Inside type

Slide 11

■Profile

Slide 12

■Xdebug [Profiling] Output profiling file Analyse Tools KCacheGrind MacCallGrind WinCacheGrind webgrind Carica CacheGrind

Slide 13

■Xdebug + WinCacheGrind Windows GPL License Light Download profiling log

Slide 14

■Xdebug + WinCacheGrind

Slide 15

■Xdebug + webgrind Web(PHP + jQuery) BSD License Direct read profiling log Show source code Simple

Slide 16

■Xdebug + Carica CacheGrind Web(PHP + JavaScript) GPL License Direct read profiling log Not stable?

Slide 17

■XHProf Web(PHP + jQuery + Graphviz) MIT and GPL License Developed at Facebook Diff Report Callgraph

Slide 18

■Function Trace

Slide 19

■Xdebug [Function Traces] all function calls parameters return values time index memory delta

Slide 20

DEMO

Slide 21

■Summary

Slide 22

■Summary Program don't run as thought. It run as written. Some Visualization ways. Go for 30th(PHP20? PHP3000?)

Slide 23

Thank you very much for kind attention Twitter: @shin1x1 blog: http://www.1x1.jp/blog/

Tags: php

URL: