function qa_usage_output() { global $qa_usage_start, $qa_usage_stages, $qa_database_queries; echo '<P><BR><TABLE BGCOLOR="#CCCCCC" CELLPADDING="8" CELLSPACING="0" WIDTH="100%">'; echo '<TR><TD COLSPAN="2">'; $totaldelta = qa_usage_delta($qa_usage_start, qa_usage_get()); echo qa_usage_line('Total', $totaldelta, $totaldelta) . '<BR>'; foreach ($qa_usage_stages as $stage => $stagedelta) { echo '<BR>' . qa_usage_line(ucfirst($stage), $stagedelta, $totaldelta); } echo '</TD></TR><TR VALIGN="bottom"><TD WIDTH="30%"><TEXTAREA COLS="40" ROWS="20" STYLE="width:100%;">'; foreach (get_included_files() as $file) { echo qa_html(implode('/', array_slice(explode('/', $file), -3))) . "\n"; } echo '</TEXTAREA></TD>'; echo '<TD WIDTH="70%"><TEXTAREA COLS="40" ROWS="20" STYLE="width:100%;">' . qa_html($qa_database_queries) . '</TEXTAREA></TD>'; echo '</TR></TABLE>'; }
function qa_usage_output() { global $qa_usage_start, $qa_usage_stages, $qa_database_queries; echo '<p><br><table bgcolor="#cccccc" cellpadding="8" cellspacing="0" width="100%">'; echo '<tr><td colspan="2">'; $totaldelta = qa_usage_delta($qa_usage_start, qa_usage_get()); echo qa_usage_line('Total', $totaldelta, $totaldelta) . '<br>'; foreach ($qa_usage_stages as $stage => $stagedelta) { echo '<br>' . qa_usage_line(ucfirst($stage), $stagedelta, $totaldelta); } echo '</td></tr><tr valign="bottom"><td width="30%"><textarea cols="40" rows="20" style="width:100%;">'; foreach (get_included_files() as $file) { echo qa_html(implode('/', array_slice(explode('/', $file), -3))) . "\n"; } echo '</textarea></td>'; echo '<td width="70%"><textarea cols="40" rows="20" style="width:100%;">' . qa_html($qa_database_queries) . '</textarea></td>'; echo '</tr></table>'; }