public function show($slug)
    {
        return collect($this->metrics->snapshotsForJob($slug))->map(function ($record) {
            $record->runtime = round($record->runtime / 1000, 3);
            $record->throughput = (int) $record->throughput;

            return $record;
        });
    }
public function show($slug)
    {
        return collect($this->metrics->snapshotsForJob($slug))->map(function ($record) {
            $record->runtime = round($record->runtime / 1000, 3);
            $record->throughput = (int) $record->throughput;

            return $record;
        });
    }
public function show ( $ slug ) { return collect ( $ this -> metrics -> snapshotsForJob ( $ slug ) ) -> map ( function ( $ record ) { $ record -> runtime = round ( $ record -> runtime / 1000 , 3 ) ; $ record -> throughput = ( int ) $ record -> throughput ; return $ record ; } ) ; }
Get metrics for a given job.

@param  string  $slug
@return \Illuminate\Support\Collection
Get metrics for a given job .