Lines Matching refs:f_profile

348 			struct st_mysqlnd_dbg_function_profile * f_profile = NULL;  in MYSQLND_METHOD()  local
356 …if ((f_profile = zend_hash_str_find_ptr(&self->function_profiles, *func_name, func_name_len)) != N… in MYSQLND_METHOD()
358 if (f_profile) { in MYSQLND_METHOD()
359 if (mine_non_own_time < f_profile->min_in_calls) { in MYSQLND_METHOD()
360 f_profile->min_in_calls = mine_non_own_time; in MYSQLND_METHOD()
361 } else if (mine_non_own_time > f_profile->max_in_calls) { in MYSQLND_METHOD()
362 f_profile->max_in_calls = mine_non_own_time; in MYSQLND_METHOD()
364f_profile->avg_in_calls = (f_profile->avg_in_calls * f_profile->calls + mine_non_own_time) / (f_pr… in MYSQLND_METHOD()
366 if (own_time < f_profile->min_own) { in MYSQLND_METHOD()
367 f_profile->min_own = own_time; in MYSQLND_METHOD()
368 } else if (own_time > f_profile->max_own) { in MYSQLND_METHOD()
369 f_profile->max_own = own_time; in MYSQLND_METHOD()
371f_profile->avg_own = (f_profile->avg_own * f_profile->calls + own_time) / (f_profile->calls + 1); in MYSQLND_METHOD()
373 if (call_time < f_profile->min_total) { in MYSQLND_METHOD()
374 f_profile->min_total = call_time; in MYSQLND_METHOD()
375 } else if (call_time > f_profile->max_total) { in MYSQLND_METHOD()
376 f_profile->max_total = call_time; in MYSQLND_METHOD()
378f_profile->avg_total = (f_profile->avg_total * f_profile->calls + call_time) / (f_profile->calls +… in MYSQLND_METHOD()
380 ++f_profile->calls; in MYSQLND_METHOD()
381 if (f_profile->calls > PROFILE_UNDERPERFORM_THRESHOLD) { in MYSQLND_METHOD()
382 if (f_profile->avg_in_calls < mine_non_own_time) { in MYSQLND_METHOD()
383 f_profile->in_calls_underporm_calls++; in MYSQLND_METHOD()
385 if (f_profile->avg_own < own_time) { in MYSQLND_METHOD()
386 f_profile->own_underporm_calls++; in MYSQLND_METHOD()
388 if (f_profile->avg_total < call_time) { in MYSQLND_METHOD()
389 f_profile->total_underporm_calls++; in MYSQLND_METHOD()
395 f_profile = &f_profile_stack; in MYSQLND_METHOD()
396 f_profile->min_in_calls = f_profile->max_in_calls = f_profile->avg_in_calls = mine_non_own_time; in MYSQLND_METHOD()
397 f_profile->min_total = f_profile->max_total = f_profile->avg_total = call_time; in MYSQLND_METHOD()
398 f_profile->min_own = f_profile->max_own = f_profile->avg_own = own_time; in MYSQLND_METHOD()
399 f_profile->calls = 1; in MYSQLND_METHOD()
400 …zend_hash_str_add_mem(&self->function_profiles, *func_name, func_name_len, f_profile, sizeof(struc… in MYSQLND_METHOD()
428 struct st_mysqlnd_dbg_function_profile * f_profile; in MYSQLND_METHOD() local
433 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&self->function_profiles, string_key, f_profile) { in MYSQLND_METHOD()
449 ,(uint64_t) f_profile->calls in MYSQLND_METHOD()
450 ,(uint64_t) f_profile->own_underporm_calls in MYSQLND_METHOD()
451 ,(uint64_t) f_profile->in_calls_underporm_calls in MYSQLND_METHOD()
452 ,(uint64_t) f_profile->total_underporm_calls in MYSQLND_METHOD()
454 ,(uint64_t) f_profile->min_own in MYSQLND_METHOD()
455 ,(uint64_t) f_profile->max_own in MYSQLND_METHOD()
456 ,(uint64_t) f_profile->avg_own in MYSQLND_METHOD()
457 ,(uint64_t) f_profile->min_in_calls in MYSQLND_METHOD()
458 ,(uint64_t) f_profile->max_in_calls in MYSQLND_METHOD()
459 ,(uint64_t) f_profile->avg_in_calls in MYSQLND_METHOD()
460 ,(uint64_t) f_profile->min_total in MYSQLND_METHOD()
461 ,(uint64_t) f_profile->max_total in MYSQLND_METHOD()
462 ,(uint64_t) f_profile->avg_total in MYSQLND_METHOD()