make debugging and coverage separate settings

This commit is contained in:
Shish
2009-09-27 14:04:27 +01:00
parent 9257decc50
commit 304c479dba
2 changed files with 5 additions and 4 deletions

View File

@ -808,14 +808,14 @@ function _end_cache() {
* Code coverage *
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
function _start_debug() {
function _start_coverage() {
if(function_exists("xdebug_start_code_coverage")) {
#xdebug_start_code_coverage(XDEBUG_CC_UNUSED|XDEBUG_CC_DEAD_CODE);
xdebug_start_code_coverage(XDEBUG_CC_UNUSED);
}
}
function _end_debug() {
function _end_coverage() {
if(function_exists("xdebug_get_code_coverage")) {
if(!file_exists("data/coverage")) mkdir("data/coverage");
$n = 0;