Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 25 of 58) sorted by relevance

123

/php-src/ext/mysqlnd/
H A Dmysqlnd_statistics.h22 #define MYSQLND_STATS_LOCK(stats) tsrm_mutex_lock((stats)->LOCK_access) argument
23 #define MYSQLND_STATS_UNLOCK(stats) tsrm_mutex_unlock((stats)->LOCK_access) argument
25 #define MYSQLND_STATS_LOCK(stats) argument
26 #define MYSQLND_STATS_UNLOCK(stats) argument
31 MYSQLND_STATS_LOCK(stats); \
32 (stats)->values[(statistic)] += (value); \
39 MYSQLND_STATS * _p_s = (MYSQLND_STATS *) (stats); \
48 MYSQLND_STATS * _p_s = (MYSQLND_STATS *) (stats); \
57 MYSQLND_STATS * _p_s = (MYSQLND_STATS *) (stats); \
66 MYSQLND_STATS * _p_s = (MYSQLND_STATS *) (stats); \
[all …]
H A Dmysqlnd_statistics.c202 array_init_size(return_value, stats->count); in mysqlnd_fill_stats_hash()
203 for (i = 0; i < stats->count; i++) { in mysqlnd_fill_stats_hash()
217 *stats = pecalloc(1, sizeof(MYSQLND_STATS), persistent); in mysqlnd_stats_init()
219 (*stats)->count = statistic_count; in mysqlnd_stats_init()
221 (*stats)->LOCK_access = tsrm_mutex_alloc(); in mysqlnd_stats_init()
232 tsrm_mutex_free(stats->LOCK_access); in mysqlnd_stats_end()
234 pefree(stats->values, persistent); in mysqlnd_stats_end()
236 pefree(stats, persistent); in mysqlnd_stats_end()
247 MYSQLND_STATS stats; in _mysqlnd_get_client_stats() local
250 memset(&stats, 0, sizeof(stats)); in _mysqlnd_get_client_stats()
[all …]
H A Dmysqlnd_protocol_frame_codec.h21 …ASS_METHODS_TYPE(mysqlnd_object_factory) *object_factory, MYSQLND_STATS * stats, MYSQLND_ERROR_INF…
22 PHPAPI void mysqlnd_pfc_free(MYSQLND_PFC * const pfc, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * e…
H A Dmysqlnd_vio.h21 …ASS_METHODS_TYPE(mysqlnd_object_factory) *object_factory, MYSQLND_STATS * stats, MYSQLND_ERROR_INF…
22 PHPAPI void mysqlnd_vio_free(MYSQLND_VIO * const vio, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * e…
H A Dmysqlnd_wireprotocol.c346 MYSQLND_STATS * stats = conn->stats; in php_mysqlnd_greet_read() local
536 MYSQLND_STATS * stats = conn->stats; in php_mysqlnd_auth_write() local
678 MYSQLND_STATS * stats = conn->stats; in php_mysqlnd_auth_response_read() local
799 MYSQLND_STATS * stats = conn->stats; in php_mysqlnd_change_auth_response_write() local
837 MYSQLND_STATS * stats = conn->stats; in php_mysqlnd_ok_read() local
931 MYSQLND_STATS * stats = conn->stats; in php_mysqlnd_eof_read() local
999 MYSQLND_STATS * stats = conn->stats; in php_mysqlnd_cmd_write() local
1058 MYSQLND_STATS * stats = conn->stats; in php_mysqlnd_rset_header_read() local
1198 MYSQLND_STATS * stats = conn->stats; in php_mysqlnd_rset_field_read() local
1716 MYSQLND_STATS * stats = conn->stats; in php_mysqlnd_rowp_read() local
[all …]
H A Dmysqlnd_driver.c141 mysqlnd_stats_init(&data->stats, STAT_LAST, persistent); in MYSQLND_METHOD()
143 data->protocol_frame_codec = mysqlnd_pfc_init(persistent, factory, data->stats, data->error_info); in MYSQLND_METHOD()
144 data->vio = mysqlnd_vio_init(persistent, factory, data->stats, data->error_info); in MYSQLND_METHOD()
224 MYSQLND_METHOD(mysqlnd_object_factory, get_pfc)(const bool persistent, MYSQLND_STATS * stats, MYSQL… in MYSQLND_METHOD()
237 pfc->data->m.init(pfc, stats, error_info); in MYSQLND_METHOD()
246 MYSQLND_METHOD(mysqlnd_object_factory, get_vio)(const bool persistent, MYSQLND_STATS * stats, MYSQL… in MYSQLND_METHOD()
259 vio->data->m.init(vio, stats, error_info); in MYSQLND_METHOD()
H A Dmysqlnd_commands.c44 conn->stats, in MYSQLND_METHOD()
70 conn->stats, in MYSQLND_METHOD()
97 conn->stats, in MYSQLND_METHOD()
133 conn->stats, in MYSQLND_METHOD()
164 conn->stats, in MYSQLND_METHOD()
201 conn->stats, in MYSQLND_METHOD()
241 conn->stats, in MYSQLND_METHOD()
267 conn->stats, in MYSQLND_METHOD()
289 conn->stats, in MYSQLND_METHOD()
315 conn->stats, in MYSQLND_METHOD()
[all …]
/php-src/ext/mysqli/tests/
H A Dmysqli_get_client_stats_ps.phpt17 $stats = mysqli_get_client_stats();
40 …if ($after['rows_fetched_from_client_ps_unbuffered'] != $stats['rows_fetched_from_client_ps_unbuff…
42 $stats['rows_fetched_from_client_ps_unbuffered'],
45 $stats['rows_fetched_from_client_ps_buffered'] += $num_rows;
46 …if ($after['rows_fetched_from_client_ps_buffered'] != $stats['rows_fetched_from_client_ps_buffered…
48 $stats['rows_fetched_from_client_ps_buffered'],
51 $stats = $after;
67 $stats['rows_fetched_from_client_ps_unbuffered'] += $num_rows;
70 $stats['rows_fetched_from_client_ps_unbuffered'],
75 $stats['rows_fetched_from_client_ps_buffered'],
[all …]
H A Dmysqli_get_client_stats_implicit_free.phpt17 $stats = mysqli_get_client_stats();
18 printf("BEGINNING: implicit_free_result = %d\n", $stats['implicit_free_result']);
27 if ($after['implicit_free_result'] != $stats['implicit_free_result'])
29 $after['implicit_free_result'] - $stats['implicit_free_result']);
31 $stats = $after;
32 printf("END: implicit_free_result = %d\n", $stats['implicit_free_result']);
/php-src/ext/standard/tests/file/
H A Dstat_variation3-win32.phpt12 /* test the effects of creating & deleting of subdir/file on the stats of dir/file */
34 // compare self stats
37 // compare the stats
46 // comparing stats after the deletion of subdir and file
47 echo "-- Testing stat() for comparing stats after the deletion of subdir and file --\n";
49 // compare self stats
51 // compare the stats
68 -- Testing stat() for comparing stats after the deletion of subdir and file --
H A Dlstat_stat_variation2.phpt5 /* test the effects of rename() on stats of dir */
22 // compare self stats
26 // compare the two stats - all except ctime
H A Dlstat_stat_variation7.phpt8 /* test the effects on stats with writing data into a file */
24 // compare self stats
27 // compare the stats
H A Dstat_variation1-win32-mb.phpt12 /* test the effects of rename() on stats of dir/file */
41 // compare the two stats
56 // compare self stats
60 // compare the two stats
H A Dstat_variation1-win32.phpt12 /* test the effects of rename() on stats of dir/file */
41 // compare the two stats
56 // compare self stats
60 // compare the two stats
H A Dlstat_stat_variation3.phpt12 /* test the effects of rename() on stats of link */
33 // compare self stats
37 // compare the two stats - all except ctime
H A Dstat_variation2-win32.phpt12 /* test the effects of writing to a file on the stats of the file */
36 // compare self stats
39 // compare the stats
H A Dstat_basic-win32-mb.phpt49 // creating file, also dump the value of stats
50 echo "*** Testing stat(): comparing stats (recorded before and after file creation) ***\n";
51 echo "-- comparing difference in dir stats before and after creating file in it --\n";
72 *** Testing stat(): comparing stats (recorded before and after file creation) ***
73 -- comparing difference in dir stats before and after creating file in it --
H A Dstat_basic-win32.phpt49 // creating file, also dump the value of stats
50 echo "*** Testing stat(): comparing stats (recorded before and after file creation) ***\n";
51 echo "-- comparing difference in dir stats before and after creating file in it --\n";
72 *** Testing stat(): comparing stats (recorded before and after file creation) ***
73 -- comparing difference in dir stats before and after creating file in it --
H A Dlstat_stat_basic.phpt63 // creating files and link, also dump the value of stats
64 echo "*** Testing stat() and lstat() : comparing stats (recorded before and after file/link creatio…
65 echo "-- comparing difference in dir stats before and after creating file in it --\n";
69 echo "-- comparing difference in file stats before and after creating link to it --\n";
89 *** Testing stat() and lstat() : comparing stats (recorded before and after file/link creation) ***
90 -- comparing difference in dir stats before and after creating file in it --
200 -- comparing difference in file stats before and after creating link to it --
H A Dstat_variation4-win32.phpt12 /* test the effects on the stats of dir/file for using is_dir() & is_file() on dir/file */
38 // compare self stats
56 // compare self stats
H A Dstat_variation6-win32.phpt12 /* test the effects on the stats of dir/file for changing permissions of dir/file */
37 // compare self stats
54 // compare self stats
H A Dlstat_stat_variation1.phpt5 /* test the effects of rename() on stats of file */
28 // compare the two stats
H A Dlstat_stat_variation11.phpt12 /* test the effects of is_file() on stats of a file */
27 // compare self stats
/php-src/ext/standard/tests/strings/
H A D004.phpt5 function stats($f, $a) {
22 stats('shuffle', $a);
32 stats('str_shuffle', $a);
/php-src/Zend/tests/
H A Dbug55509.phpt45 $freeMemory = ($infos['vm.stats.vm.v_inactive_count']*$infos['hw.pagesize'])
46 +($infos['vm.stats.vm.v_cache_count']*$infos['hw.pagesize'])
47 +($infos['vm.stats.vm.v_free_count']*$infos['hw.pagesize']);

Completed in 44 milliseconds

123