Lines Matching refs:f_profile

350 			struct st_mysqlnd_dbg_function_profile * f_profile = NULL;  in MYSQLND_METHOD()  local
358 …if ((f_profile = zend_hash_str_find_ptr(&self->function_profiles, *func_name, func_name_len)) != N… in MYSQLND_METHOD()
360 if (f_profile) { in MYSQLND_METHOD()
361 if (mine_non_own_time < f_profile->min_in_calls) { in MYSQLND_METHOD()
362 f_profile->min_in_calls = mine_non_own_time; in MYSQLND_METHOD()
363 } else if (mine_non_own_time > f_profile->max_in_calls) { in MYSQLND_METHOD()
364 f_profile->max_in_calls = mine_non_own_time; in MYSQLND_METHOD()
366f_profile->avg_in_calls = (f_profile->avg_in_calls * f_profile->calls + mine_non_own_time) / (f_pr… in MYSQLND_METHOD()
368 if (own_time < f_profile->min_own) { in MYSQLND_METHOD()
369 f_profile->min_own = own_time; in MYSQLND_METHOD()
370 } else if (own_time > f_profile->max_own) { in MYSQLND_METHOD()
371 f_profile->max_own = own_time; in MYSQLND_METHOD()
373f_profile->avg_own = (f_profile->avg_own * f_profile->calls + own_time) / (f_profile->calls + 1); in MYSQLND_METHOD()
375 if (call_time < f_profile->min_total) { in MYSQLND_METHOD()
376 f_profile->min_total = call_time; in MYSQLND_METHOD()
377 } else if (call_time > f_profile->max_total) { in MYSQLND_METHOD()
378 f_profile->max_total = call_time; in MYSQLND_METHOD()
380f_profile->avg_total = (f_profile->avg_total * f_profile->calls + call_time) / (f_profile->calls +… in MYSQLND_METHOD()
382 ++f_profile->calls; in MYSQLND_METHOD()
383 if (f_profile->calls > PROFILE_UNDERPERFORM_THRESHOLD) { in MYSQLND_METHOD()
384 if (f_profile->avg_in_calls < mine_non_own_time) { in MYSQLND_METHOD()
385 f_profile->in_calls_underporm_calls++; in MYSQLND_METHOD()
387 if (f_profile->avg_own < own_time) { in MYSQLND_METHOD()
388 f_profile->own_underporm_calls++; in MYSQLND_METHOD()
390 if (f_profile->avg_total < call_time) { in MYSQLND_METHOD()
391 f_profile->total_underporm_calls++; in MYSQLND_METHOD()
397 f_profile = &f_profile_stack; in MYSQLND_METHOD()
398 f_profile->min_in_calls = f_profile->max_in_calls = f_profile->avg_in_calls = mine_non_own_time; in MYSQLND_METHOD()
399 f_profile->min_total = f_profile->max_total = f_profile->avg_total = call_time; in MYSQLND_METHOD()
400 f_profile->min_own = f_profile->max_own = f_profile->avg_own = own_time; in MYSQLND_METHOD()
401 f_profile->calls = 1; in MYSQLND_METHOD()
402 …zend_hash_str_add_mem(&self->function_profiles, *func_name, func_name_len, f_profile, sizeof(struc… in MYSQLND_METHOD()
429 struct st_mysqlnd_dbg_function_profile * f_profile; in MYSQLND_METHOD() local
434 ZEND_HASH_FOREACH_STR_KEY_PTR(&self->function_profiles, string_key, f_profile) { in MYSQLND_METHOD()
441 ,(uint64_t) f_profile->calls in MYSQLND_METHOD()
442 ,(uint64_t) f_profile->own_underporm_calls in MYSQLND_METHOD()
443 ,(uint64_t) f_profile->in_calls_underporm_calls in MYSQLND_METHOD()
444 ,(uint64_t) f_profile->total_underporm_calls in MYSQLND_METHOD()
446 ,(uint64_t) f_profile->min_own in MYSQLND_METHOD()
447 ,(uint64_t) f_profile->max_own in MYSQLND_METHOD()
448 ,(uint64_t) f_profile->avg_own in MYSQLND_METHOD()
449 ,(uint64_t) f_profile->min_in_calls in MYSQLND_METHOD()
450 ,(uint64_t) f_profile->max_in_calls in MYSQLND_METHOD()
451 ,(uint64_t) f_profile->avg_in_calls in MYSQLND_METHOD()
452 ,(uint64_t) f_profile->min_total in MYSQLND_METHOD()
453 ,(uint64_t) f_profile->max_total in MYSQLND_METHOD()
454 ,(uint64_t) f_profile->avg_total in MYSQLND_METHOD()