Lines Matching refs:f_profile

351 			struct st_mysqlnd_dbg_function_profile * f_profile = NULL;  in MYSQLND_METHOD()  local
359 …if ((f_profile = zend_hash_str_find_ptr(&self->function_profiles, *func_name, func_name_len)) != N… in MYSQLND_METHOD()
361 if (f_profile) { in MYSQLND_METHOD()
362 if (mine_non_own_time < f_profile->min_in_calls) { in MYSQLND_METHOD()
363 f_profile->min_in_calls = mine_non_own_time; in MYSQLND_METHOD()
364 } else if (mine_non_own_time > f_profile->max_in_calls) { in MYSQLND_METHOD()
365 f_profile->max_in_calls = mine_non_own_time; in MYSQLND_METHOD()
367f_profile->avg_in_calls = (f_profile->avg_in_calls * f_profile->calls + mine_non_own_time) / (f_pr… in MYSQLND_METHOD()
369 if (own_time < f_profile->min_own) { in MYSQLND_METHOD()
370 f_profile->min_own = own_time; in MYSQLND_METHOD()
371 } else if (own_time > f_profile->max_own) { in MYSQLND_METHOD()
372 f_profile->max_own = own_time; in MYSQLND_METHOD()
374f_profile->avg_own = (f_profile->avg_own * f_profile->calls + own_time) / (f_profile->calls + 1); in MYSQLND_METHOD()
376 if (call_time < f_profile->min_total) { in MYSQLND_METHOD()
377 f_profile->min_total = call_time; in MYSQLND_METHOD()
378 } else if (call_time > f_profile->max_total) { in MYSQLND_METHOD()
379 f_profile->max_total = call_time; in MYSQLND_METHOD()
381f_profile->avg_total = (f_profile->avg_total * f_profile->calls + call_time) / (f_profile->calls +… in MYSQLND_METHOD()
383 ++f_profile->calls; in MYSQLND_METHOD()
384 if (f_profile->calls > PROFILE_UNDERPERFORM_THRESHOLD) { in MYSQLND_METHOD()
385 if (f_profile->avg_in_calls < mine_non_own_time) { in MYSQLND_METHOD()
386 f_profile->in_calls_underporm_calls++; in MYSQLND_METHOD()
388 if (f_profile->avg_own < own_time) { in MYSQLND_METHOD()
389 f_profile->own_underporm_calls++; in MYSQLND_METHOD()
391 if (f_profile->avg_total < call_time) { in MYSQLND_METHOD()
392 f_profile->total_underporm_calls++; in MYSQLND_METHOD()
398 f_profile = &f_profile_stack; in MYSQLND_METHOD()
399 f_profile->min_in_calls = f_profile->max_in_calls = f_profile->avg_in_calls = mine_non_own_time; in MYSQLND_METHOD()
400 f_profile->min_total = f_profile->max_total = f_profile->avg_total = call_time; in MYSQLND_METHOD()
401 f_profile->min_own = f_profile->max_own = f_profile->avg_own = own_time; in MYSQLND_METHOD()
402 f_profile->calls = 1; in MYSQLND_METHOD()
403 …zend_hash_str_add_mem(&self->function_profiles, *func_name, func_name_len, f_profile, sizeof(struc… in MYSQLND_METHOD()
430 struct st_mysqlnd_dbg_function_profile * f_profile; in MYSQLND_METHOD() local
435 ZEND_HASH_FOREACH_STR_KEY_PTR(&self->function_profiles, string_key, f_profile) { in MYSQLND_METHOD()
442 ,(uint64_t) f_profile->calls in MYSQLND_METHOD()
443 ,(uint64_t) f_profile->own_underporm_calls in MYSQLND_METHOD()
444 ,(uint64_t) f_profile->in_calls_underporm_calls in MYSQLND_METHOD()
445 ,(uint64_t) f_profile->total_underporm_calls in MYSQLND_METHOD()
447 ,(uint64_t) f_profile->min_own in MYSQLND_METHOD()
448 ,(uint64_t) f_profile->max_own in MYSQLND_METHOD()
449 ,(uint64_t) f_profile->avg_own in MYSQLND_METHOD()
450 ,(uint64_t) f_profile->min_in_calls in MYSQLND_METHOD()
451 ,(uint64_t) f_profile->max_in_calls in MYSQLND_METHOD()
452 ,(uint64_t) f_profile->avg_in_calls in MYSQLND_METHOD()
453 ,(uint64_t) f_profile->min_total in MYSQLND_METHOD()
454 ,(uint64_t) f_profile->max_total in MYSQLND_METHOD()
455 ,(uint64_t) f_profile->avg_total in MYSQLND_METHOD()