Changeset 204 in svn for trunk/xcache.c


Ignore:
Timestamp:
2006-10-01T08:57:51Z (9 years ago)
Author:
Xuefer
Message:

coverager: new api xcache_coverager_start/xcache_coverager_stop/xcache_coverager_get(), coverager ini changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r202 r204  
    20262026#ifdef HAVE_XCACHE_COVERAGER
    20272027    PHP_FE(xcache_coverager_decode,  NULL)
     2028    PHP_FE(xcache_coverager_start,   NULL)
     2029    PHP_FE(xcache_coverager_stop,    NULL)
     2030    PHP_FE(xcache_coverager_get,     NULL)
    20282031#endif
    20292032    PHP_FE(xcache_get_special_value, NULL)
     
    21582161    STD_PHP_INI_BOOLEAN("xcache.var_ttl",                "0", PHP_INI_ALL,    OnUpdateLong,        var_ttl,           zend_xcache_globals, xcache_globals)
    21592162#ifdef HAVE_XCACHE_COVERAGER
    2160     PHP_INI_ENTRY1     ("xcache.coveragedump_directory", "/tmp/pcov/", PHP_INI_SYSTEM, xc_OnUpdateString,   &xc_coveragedump_dir)
    2161     STD_PHP_INI_BOOLEAN("xcache.coveragedumper" ,                 "0", PHP_INI_ALL,    OnUpdateBool,        coveragedumper,    zend_xcache_globals, xcache_globals)
     2163    STD_PHP_INI_BOOLEAN("xcache.coverager"      ,        "0", PHP_INI_ALL,    OnUpdateBool,        coverager,         zend_xcache_globals, xcache_globals)
     2164    PHP_INI_ENTRY1     ("xcache.coveragedump_directory",  "", PHP_INI_SYSTEM, xc_OnUpdateDummy,    NULL)
    21622165#endif
    21632166PHP_INI_END()
     
    21702173    int left, len;
    21712174    xc_shm_scheme_t *scheme;
     2175    char *covdumpdir;
    21722176
    21732177    php_info_print_table_start();
     
    22072211
    22082212#ifdef HAVE_XCACHE_COVERAGER
    2209     php_info_print_table_row(2, "Coverage Dumper", XG(coveragedumper) && xc_coveragedump_dir && xc_coveragedump_dir[0] ? "enabled" : "disabled");
     2213    if (cfg_get_string("xcache.coveragedump_directory", &covdumpdir) != SUCCESS || !covdumpdir[0]) {
     2214        covdumpdir = NULL;
     2215    }
     2216    php_info_print_table_row(2, "Coverage Auto Dumper", XG(coverager) && covdumpdir ? "enabled" : "disabled");
    22102217#endif
    22112218    php_info_print_table_end();
Note: See TracChangeset for help on using the changeset viewer.