* @file
*/
+use RunningStat\RunningStat;
+
/**
* Convenience class for working with XHProf
* <https://github.com/phacility/xhprof>. XHProf can be installed as a PECL
}
for ( $i = 0; $i < $stats['ct']; $i++ ) {
- $this->inclusive[$child][$stat]->push(
+ $this->inclusive[$child][$stat]->addObservation(
$value / $stats['ct']
);
}
$this->complete[$func]['subcalls'] = array();
}
- foreach( $this->hieraData as $key => $stats ) {
+ foreach ( $this->hieraData as $key => $stats ) {
list( $parent, $child ) = self::splitKey( $key );
if ( $parent !== null ) {
// Track call tree information