extractDimension() public method

Useful for creating bar/column graphs. The profile data will be sorted by the column and then the $limit records will be extracted.
public extractDimension ( string $dimension, integer $limit ) : array
$dimension string The dimension to extract
$limit integer Number of elements to pull
return array Array of data with name = function name and value = the dimension.
Example #1
0
 public function testExtractDimension()
 {
     $profile = new Xhgui_Profile($this->_fixture[0]);
     $result = $profile->extractDimension('mu', 1);
     $this->assertCount(1, $result);
     $expected = array('name' => 'main()', 'value' => 3449360);
     $this->assertEquals($expected, $result[0]);
 }