XHProf is a PHP code profiler developed by the programmers behind Facebook. More experienced TYPO3 CMS developers surely had many opportunities to make use of the capabilities it provides.
For example, we can no longer imagine efficient work and fast debugging of applications without TYPO3. If you are still using the admPanel (a tool built right in TYPO3) to check which part of the page takes too long to generate, it’s high time to check out XHProf and see for yourself how much valuable data it can
XHProf provides its users with a plethora of interesting data, including, among others:
- number of calls to each function
- calls of each function
- memory usage
Everything can be viewed upon each page refresh, and you get two views to choose from:
Flat profile | Hierarchical profile |
Furthermore, XHProf provides the ability to compare data from various calls. For example, we can compare changes before and after making a change in the critical part of the code, to check how they influenced the performance.
Not so long ago, we had a problem generation times being too long when the page contained images. When we installed XProf, it turned out that PHP spends too much time on directory and file access functions. This was caused by a gross overpopulation of a certain image file directory - there were over 150,000 images in that one place.
This description is just an introduction to the many ways in which XHProf can be used. If you want to know more, read the official documentation at mirror.facebook.net/facebook/xhprof/doc.html
I also recommend a look at the full-size Hierarchical profile http://techblog.evo.pl/wp-content/uploads/2010/02/callgraph.png. The chart shows a cached page with one USER_INT object. A database is used as a cache backend.




Latest comments
Daniel
I get a fatal error with this extension: Fatal error: Call to undefined method t3lib_div::makeInsta... / 07 May. 20:53
Zaawansowana subskrypcja, nasze nowe rozszerzenie
Michael
The correct Amazon S3 API TER link is http://typo3.org/extensions/repository/view/amazon-s3-api T... / 24 Apr. 11:44
s3example - TYPO3 i Amazon S3
Adi
Pod nową wersją t3 z gałęzi 4.5.14 (gdzie w korze znalazły się jakieś krytyczne luki) wtyczka też ni... / 02 Apr. 19:52
Zaawansowana subskrypcja, nasze nowe rozszerzenie
Rafał Brzeski
Nasze niedopatrzenie, w nowej wersji dodamy opcję wyboru tej opcji. / 21 Mar. 20:22
Zaawansowana subskrypcja, nasze nowe rozszerzenie
bocianos
Wszystko super tylko jak zrobic aby nowe adresy domyslnie miały zaznaczone otrzymywani maili w forma... / 20 Mar. 13:08
Zaawansowana subskrypcja, nasze nowe rozszerzenie