public function save($report = null) { return parent::save(array("name" => self::ID . " ::=> " . microtime(), "type" => 0, "start" => floor(PERFORMANCE_AUDIT_START_TIME * 100000), "end" => floor(microtime() * 100000), "realm" => self::REALM, "source" => self::ID, "data" => json_encode($report))); }
/** * @brief Generates a report derived from `xhprof` data. * * ## Overview * This will loop through each report and extract data and create usable metrics. * * @uses xhprof_disable() * @see PerformanceAuditor->generateReport(); * * @return {Array} Metrics derived from audit reports' data. * * @author <*****@*****.**> * @date 02/19/2014 */ public function generateReport($criteria) { // $report = array(); // $entries = parent::generateReport($criteria); // // // // foreach($entries as $entry) // // { // // // // } // // return array( // "total" => count($entries), // "reports" => $entries // ); return parent::generateReport($criteria); }
/** * @brief Generates a report derived from `xhprof` data. * * ## Overview * This will loop through each report and extract data and create usable metrics. * * @see PerformanceAuditor->generateReport(); * * @return {Array} Metrics derived from audit reports' data. * * @author <*****@*****.**> * @date 02/19/2014 */ public function generateReport($criteria) { /** * @todo Go through apache access logs and record `cachee.php` 200 and 304 hits. */ return parent::generateReport($criteria); }