Regreph\XHProf\MemoryRuns::save_run PHP Method

save_run() public method

The caller may optionally pass in run_id (which they promise to be unique). If a run_id is not passed in, the implementation of this method must generated a unique run id for this saved XHProf run. Returns the run id for the saved XHProf run.
public save_run ( $xhprof_data, $type, $run_id = null )
    public function save_run($xhprof_data, $type, $run_id = null)
    {
        $run_id = $run_id ?: 'run' . (count($this->_runs) + 1);
        $this->_runs[$run_id] = $xhprof_data;
        return $run_id;
    }