Lines Matching refs:ZCSG

359 		zend_persistent_script *persistent_script = zend_accel_hash_find(&ZCSG(hash), key);
514 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hits));
516 …tf(buf, sizeof(buf), ZEND_ULONG_FMT, ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blackl…
524 if (ZCSG(interned_strings).start && ZCSG(interned_strings).end) {
525 …snprintf(buf, sizeof(buf), "%zu", (size_t)((char*)ZCSG(interned_strings).top - (char*)(accel_share…
527 …snprintf(buf, sizeof(buf), "%zu", (size_t)((char*)ZCSG(interned_strings).end - (char*)ZCSG(interne…
530 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_direct_entries);
532 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_entries);
534 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).max_num_entries);
536 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(oom_restarts));
538 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hash_restarts));
540 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(manual_restarts));
543 …start_time = php_format_date(Z_STRVAL_P(date_ISO8601), Z_STRLEN_P(date_ISO8601), ZCSG(start_time),…
547 if (ZCSG(last_restart_time)) {
548 …restart_time = php_format_date(Z_STRVAL_P(date_ISO8601), Z_STRLEN_P(date_ISO8601), ZCSG(last_resta…
555 if (ZCSG(force_restart_time)) {
556 …force_restart_time = php_format_date(Z_STRVAL_P(date_ISO8601), Z_STRLEN_P(date_ISO8601), ZCSG(forc…
604 for (i = 0; i<ZCSG(hash).max_num_entries; i++) {
605 for (cache_entry = ZCSG(hash).hash_table[i]; cache_entry; cache_entry = cache_entry->next) {
673 add_assoc_bool(return_value, "restart_pending", ZCSG(restart_pending));
674 add_assoc_bool(return_value, "restart_in_progress", ZCSG(restart_in_progress));
684 if (ZCSG(interned_strings).start && ZCSG(interned_strings).end) {
688 …add_assoc_long(&interned_strings_usage, "buffer_size", (char*)ZCSG(interned_strings).end - (char*)…
689 …add_assoc_long(&interned_strings_usage, "used_memory", (char*)ZCSG(interned_strings).top - (char*)…
690 …soc_long(&interned_strings_usage, "free_memory", (char*)ZCSG(interned_strings).end - (char*)ZCSG(i…
691 …add_assoc_long(&interned_strings_usage, "number_of_strings", ZCSG(interned_strings).nNumOfElements…
697 add_assoc_long(&statistics, "num_cached_scripts", ZCSG(hash).num_direct_entries);
698 add_assoc_long(&statistics, "num_cached_keys", ZCSG(hash).num_entries);
699 add_assoc_long(&statistics, "max_cached_keys", ZCSG(hash).max_num_entries);
700 add_assoc_long(&statistics, "hits", (zend_long)ZCSG(hits));
701 add_assoc_long(&statistics, "start_time", ZCSG(start_time));
702 add_assoc_long(&statistics, "last_restart_time", ZCSG(last_restart_time));
703 add_assoc_long(&statistics, "oom_restarts", ZCSG(oom_restarts));
704 add_assoc_long(&statistics, "hash_restarts", ZCSG(hash_restarts));
705 add_assoc_long(&statistics, "manual_restarts", ZCSG(manual_restarts));
706 …add_assoc_long(&statistics, "misses", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(black…
707 add_assoc_long(&statistics, "blacklist_misses", ZCSG(blacklist_misses));
708 reqs = ZCSG(hits)+ZCSG(misses);
709 …add_assoc_double(&statistics, "blacklist_miss_ratio", reqs?(((double) ZCSG(blacklist_misses))/reqs…
710 add_assoc_double(&statistics, "opcache_hit_rate", reqs?(((double) ZCSG(hits))/reqs)*100.0:0);
713 if (ZCSG(preload_script)) {
716 …add_assoc_long(&statistics, "memory_consumption", ZCSG(preload_script)->dynamic_members.memory_con…
718 if (zend_hash_num_elements(&ZCSG(preload_script)->script.function_table)) {
722 ZEND_HASH_MAP_FOREACH_PTR(&ZCSG(preload_script)->script.function_table, op_array) {
728 if (zend_hash_num_elements(&ZCSG(preload_script)->script.class_table)) {
733 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(&ZCSG(preload_script)->script.class_table, key, zv) {
743 if (ZCSG(saved_scripts)) {
744 zend_persistent_script **p = ZCSG(saved_scripts);
892 if ((!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled))