Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Profiling TYPO3 Flow Applications


Published on

Presentation given at T3CON NA in San Francisco. The slides also match the presentation giving during Inspiring Flow 2013 in Kolbermoor on 2013/04/20.

Published in: Technology

Profiling TYPO3 Flow Applications

  1. 1. Inspiring people toshareInspiring people toshareProfilingTYPO3 FlowApplications
  2. 2. Karsten DambekalnsTYPO3 Neos and Flow developer35 years oldlives in Lübeck, Germany1 wife, 3 sons1 espresso machinelikes canoeing & climbing
  3. 3. Plumber &PhpProfiler
  4. 4. Features
  5. 5. Metrics at a glance
  6. 6. Listing Profiling Runs
  7. 7. Listing Profiling Runs
  8. 8. XHProf Profiling Data
  9. 9. Request Timeline
  10. 10. Comparing Runs
  11. 11. Installation &Configuration
  12. 12. Installing XHProfOn Windows:•If you need a working DLL for XHProf on Windows (PHP 5.4) check•This one tracks time, while other builds found on the internet didnotMacPorts:•sudo port install php54-xhprofLinux:•Search for a package in your distribution of choice
  13. 13. "repositories": [{"type": "git","url": ""},{"type": "git","url": ""}]"require": {"sandstorm/plumber": "standalone","sandstorm/phpprofiler": "standalone-addedbackends as 1.0.3-dev"}Installing Plumbercomposer.json
  14. 14. - name: Plumber uriPattern: profiler/<PlumberSubroutes> defaults:   @format: html subRoutes:   PlumberSubroutes:     package: Sandstorm.PlumberInstalling PlumberRoutes.yaml
  15. 15. Sandstorm:Plumber:calculations:fileSystemCalls:label: No. of FS callstype: regexSumregex: #==>(file_get_contents|file_exists|filesize|is_dir|is_file|is_link|realpath|symlink|file_put_contents)#ConfigurationSettings.yaml
  16. 16. What is new?(in my version)
  17. 17. More XHProf BeautyPhpProfiler can store data for• settings (•preinheimer-xhgui ( from their websites and set up as documented there :)Configure the backend(s) to use
  18. 18.
  19. 19.
  20. 20. XHGui, Paul Reinheimer style
  21. 21. XHGui Custom Views
  22. 22. trueusername: myuserpassword: mypasswordxhgui:enable: trueConfigurationSettings.yaml
  23. 23. Running the UIspreinheimer-xhguicd /path/to/xhgui/web/webrootphp -S localhost:8080xhprof.iocd /path/to/xhprof.iophp -S localhost:8080•unfortunately that needs a proper virtual host
  24. 24. Up and Coming
  25. 25. Plans for the near FutureMake use of backends configurable•there are some more helpful configuration settingsImport existing profiles into new analysis tools•if a better UI comes up, using old data would be niceProvide "production mode" that can be left running on live servers•do not profile every request, but only every 2nd, 10th, 100th, …Merge branches back into master, polish, promote
  26. 26. Help to make this reality!Fund my project proposalAny amount helpsHave a better PlumberPledge
  27. 27. Thank You!slides: | karsten@dambekalns.deweb: http://karsten.dambekalns.detwitter & @kdambekalns