public function retrieve($index = null)
    {
        return !is_null($index) ? Profiler::$_samples[$index] : Profiler::$_samples;
    }
public function retrieve($index = null)
    {
        return !is_null($index) ? Profiler::$_samples[$index] : Profiler::$_samples;
    }
public function retrieve ( $ index = null ) { return ! is_null ( $ index ) ? Profiler :: $ _samples [ $ index ] : Profiler :: $ _samples ; }
Given an index, return the sample at that position otherwise just
return all samples.

@param integer $index
The array index to return the sample for
@return array
If no `$index` is passed an array of all the sample arrays are returned
otherwise just the sample at the given `$index` will be returned.
Given an index return the sample at that position otherwise just return all samples .