Lines Matching refs:ZCSG

339 …zend_persistent_script *persistent_script = zend_accel_hash_str_find(&ZCSG(hash), key, key_length);
474 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hits));
476 …tf(buf, sizeof(buf), ZEND_ULONG_FMT, ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blackl…
484 if (ZCSG(interned_strings).start && ZCSG(interned_strings).end) {
485 …snprintf(buf, sizeof(buf), "%zu", (size_t)((char*)ZCSG(interned_strings).top - (char*)ZCSG(interne…
487 …snprintf(buf, sizeof(buf), "%zu", (size_t)((char*)ZCSG(interned_strings).end - (char*)ZCSG(interne…
490 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_direct_entries);
492 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_entries);
494 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).max_num_entries);
496 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(oom_restarts));
498 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hash_restarts));
500 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(manual_restarts));
545 for (i = 0; i<ZCSG(hash).max_num_entries; i++) {
546 for (cache_entry = ZCSG(hash).hash_table[i]; cache_entry; cache_entry = cache_entry->next) {
613 add_assoc_bool(return_value, "restart_pending", ZCSG(restart_pending));
614 add_assoc_bool(return_value, "restart_in_progress", ZCSG(restart_in_progress));
624 if (ZCSG(interned_strings).start && ZCSG(interned_strings).end) {
628 …soc_long(&interned_strings_usage, "buffer_size", (char*)ZCSG(interned_strings).end - (char*)ZCSG(i…
629 …soc_long(&interned_strings_usage, "used_memory", (char*)ZCSG(interned_strings).top - (char*)ZCSG(i…
630 …soc_long(&interned_strings_usage, "free_memory", (char*)ZCSG(interned_strings).end - (char*)ZCSG(i…
631 …add_assoc_long(&interned_strings_usage, "number_of_strings", ZCSG(interned_strings).nNumOfElements…
637 add_assoc_long(&statistics, "num_cached_scripts", ZCSG(hash).num_direct_entries);
638 add_assoc_long(&statistics, "num_cached_keys", ZCSG(hash).num_entries);
639 add_assoc_long(&statistics, "max_cached_keys", ZCSG(hash).max_num_entries);
640 add_assoc_long(&statistics, "hits", (zend_long)ZCSG(hits));
641 add_assoc_long(&statistics, "start_time", ZCSG(start_time));
642 add_assoc_long(&statistics, "last_restart_time", ZCSG(last_restart_time));
643 add_assoc_long(&statistics, "oom_restarts", ZCSG(oom_restarts));
644 add_assoc_long(&statistics, "hash_restarts", ZCSG(hash_restarts));
645 add_assoc_long(&statistics, "manual_restarts", ZCSG(manual_restarts));
646 …add_assoc_long(&statistics, "misses", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(black…
647 add_assoc_long(&statistics, "blacklist_misses", ZCSG(blacklist_misses));
648 reqs = ZCSG(hits)+ZCSG(misses);
649 …add_assoc_double(&statistics, "blacklist_miss_ratio", reqs?(((double) ZCSG(blacklist_misses))/reqs…
650 add_assoc_double(&statistics, "opcache_hit_rate", reqs?(((double) ZCSG(hits))/reqs)*100.0:0);
653 if (ZCSG(preload_script)) {
656 …add_assoc_long(&statistics, "memory_consumption", ZCSG(preload_script)->dynamic_members.memory_con…
658 if (zend_hash_num_elements(&ZCSG(preload_script)->script.function_table)) {
662 ZEND_HASH_FOREACH_PTR(&ZCSG(preload_script)->script.function_table, op_array) {
668 if (zend_hash_num_elements(&ZCSG(preload_script)->script.class_table)) {
673 ZEND_HASH_FOREACH_STR_KEY_PTR(&ZCSG(preload_script)->script.class_table, key, ce) {
683 if (ZCSG(saved_scripts)) {
684 zend_persistent_script **p = ZCSG(saved_scripts);
810 if ((!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled))