Xhgui_Profile::getFunctionCount PHP Method

getFunctionCount() public method

Get the total number of tracked function calls in this run.
public getFunctionCount ( ) : integer
return integer
    public function getFunctionCount()
    {
        if ($this->_functionCount) {
            return $this->_functionCount;
        }
        $total = 0;
        foreach ($this->_collapsed as $data) {
            $total += $data['ct'];
        }
        $this->_functionCount = $total;
        return $this->_functionCount;
    }

Usage Example

Example #1
0
 public function testGetFunctionCount()
 {
     $fixture = $this->_fixture[0];
     $profile = new Xhgui_Profile($fixture);
     $this->assertEquals(11, $profile->getFunctionCount());
 }
All Usage Examples Of Xhgui_Profile::getFunctionCount