<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.basic.php.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'book.xhprof.php',
    1 => 'Xhprof',
    2 => 'Hierarchical Profiler',
  ),
  'up' => 
  array (
    0 => 'refs.basic.php.php',
    1 => 'Modifica del comportamento di PHP',
  ),
  'prev' => 
  array (
    0 => 'wincache.win32build.verify.php',
    1 => 'Verifying the build',
  ),
  'next' => 
  array (
    0 => 'xhprof.setup.php',
    1 => 'Installazione/Configurazione',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/xhprof/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.xhprof.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.xhprof" class="book">
 
 <h1 class="title">Hierarchical Profiler</h1>
 

 <div id="intro.xhprof" class="preface">
  <h1 class="title">Introduzione</h1>
  <p class="para">
   XHProf is a light-weight hierarchical and instrumentation based profiler. 
   During the data collection phase, it keeps track of call counts and inclusive
   metrics for arcs in the dynamic callgraph of a program. It computes exclusive
   metrics in the reporting/post processing phase, such as wall (elapsed) time,
   CPU time and memory usage. A functions profile can be broken down by callers 
   or callees. XHProf handles recursive functions by detecting cycles in the
   callgraph at data collection time itself and avoiding the cycles by giving unique
   depth qualified names for the recursive invocations.
  </p>
  <p class="para">
   XHProf includes a simple HTML based user interface (written in PHP). The browser based
   UI for viewing profiler results makes it easy to view results or to share results
   with peers. A callgraph image view is also supported.
  </p>
  <p class="para">
   XHProf reports can often be helpful in understanding the structure of the code
   being executed. The hierarchical nature of the reports can be used to determine,
   for example, what chain of calls led to a particular function getting called.
  </p>
  <p class="para">
   XHProf supports ability to compare two runs (a.k.a. &quot;diff&quot; reports) or aggregate
   data from multiple runs. Diff and aggregate reports, much like single run reports,
   offer &quot;flat&quot; as well as &quot;hierarchical&quot; views of the profile.
  </p>
  <p class="para">
   Additional documentation can be found via the
   <a href="http://web.archive.org/web/20110514095512/http://mirror.facebook.net/facebook/xhprof/doc.html" class="link external">&raquo;&nbsp;facebook xhprof</a> website.
  </p>
 </div>

 






 






 






 







<ul class="chunklist chunklist_book"><li><a href="xhprof.setup.php">Installazione/Configurazione</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="xhprof.requirements.php">Requisiti</a></li><li><a href="xhprof.installation.php">Installazione</a></li><li><a href="xhprof.configuration.php">Configurazione di Runtime</a></li></ul></li><li><a href="xhprof.constants.php">Costanti predefinite</a></li><li><a href="xhprof.examples.php">Esempi</a></li><li><a href="ref.xhprof.php">Xhprof Funzioni</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.xhprof-disable.php">xhprof_disable</a> — Stops xhprof profiler</li><li><a href="function.xhprof-enable.php">xhprof_enable</a> — Start xhprof profiler</li><li><a href="function.xhprof-sample-disable.php">xhprof_sample_disable</a> — Stops xhprof sample profiler</li><li><a href="function.xhprof-sample-enable.php">xhprof_sample_enable</a> — Start XHProf profiling in sampling mode</li></ul></li></ul></div><?php manual_footer($setup); ?>