Lines Matching refs:ZCSG

318 …zend_persistent_script *persistent_script = zend_accel_hash_str_find(&ZCSG(hash), key, key_length);
466 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hits));
468 …tf(buf, sizeof(buf), ZEND_ULONG_FMT, ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blackl…
476 if (ZCSG(interned_strings).start && ZCSG(interned_strings).end) {
477 …snprintf(buf, sizeof(buf), "%zu", (size_t)((char*)ZCSG(interned_strings).top - (char*)ZCSG(interne…
479 …snprintf(buf, sizeof(buf), "%zu", (size_t)((char*)ZCSG(interned_strings).end - (char*)ZCSG(interne…
482 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_direct_entries);
484 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_entries);
486 snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).max_num_entries);
488 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(oom_restarts));
490 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hash_restarts));
492 snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(manual_restarts));
536 for (i = 0; i<ZCSG(hash).max_num_entries; i++) {
537 for (cache_entry = ZCSG(hash).hash_table[i]; cache_entry; cache_entry = cache_entry->next) {
603 add_assoc_bool(return_value, "restart_pending", ZCSG(restart_pending));
604 add_assoc_bool(return_value, "restart_in_progress", ZCSG(restart_in_progress));
614 if (ZCSG(interned_strings).start && ZCSG(interned_strings).end) {
618 …soc_long(&interned_strings_usage, "buffer_size", (char*)ZCSG(interned_strings).end - (char*)ZCSG(i…
619 …soc_long(&interned_strings_usage, "used_memory", (char*)ZCSG(interned_strings).top - (char*)ZCSG(i…
620 …soc_long(&interned_strings_usage, "free_memory", (char*)ZCSG(interned_strings).end - (char*)ZCSG(i…
621 …add_assoc_long(&interned_strings_usage, "number_of_strings", ZCSG(interned_strings).nNumOfElements…
627 add_assoc_long(&statistics, "num_cached_scripts", ZCSG(hash).num_direct_entries);
628 add_assoc_long(&statistics, "num_cached_keys", ZCSG(hash).num_entries);
629 add_assoc_long(&statistics, "max_cached_keys", ZCSG(hash).max_num_entries);
630 add_assoc_long(&statistics, "hits", (zend_long)ZCSG(hits));
631 add_assoc_long(&statistics, "start_time", ZCSG(start_time));
632 add_assoc_long(&statistics, "last_restart_time", ZCSG(last_restart_time));
633 add_assoc_long(&statistics, "oom_restarts", ZCSG(oom_restarts));
634 add_assoc_long(&statistics, "hash_restarts", ZCSG(hash_restarts));
635 add_assoc_long(&statistics, "manual_restarts", ZCSG(manual_restarts));
636 …add_assoc_long(&statistics, "misses", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(black…
637 add_assoc_long(&statistics, "blacklist_misses", ZCSG(blacklist_misses));
638 reqs = ZCSG(hits)+ZCSG(misses);
639 …add_assoc_double(&statistics, "blacklist_miss_ratio", reqs?(((double) ZCSG(blacklist_misses))/reqs…
640 add_assoc_double(&statistics, "opcache_hit_rate", reqs?(((double) ZCSG(hits))/reqs)*100.0:0);
643 if (ZCSG(preload_script)) {
646 …add_assoc_long(&statistics, "memory_consumption", ZCSG(preload_script)->dynamic_members.memory_con…
648 if (zend_hash_num_elements(&ZCSG(preload_script)->script.function_table)) {
652 ZEND_HASH_FOREACH_PTR(&ZCSG(preload_script)->script.function_table, op_array) {
658 if (zend_hash_num_elements(&ZCSG(preload_script)->script.class_table)) {
663 ZEND_HASH_FOREACH_STR_KEY_PTR(&ZCSG(preload_script)->script.class_table, key, ce) {
673 if (ZCSG(saved_scripts)) {
674 zend_persistent_script **p = ZCSG(saved_scripts);
822 if ((!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled))