MCPcopy Create free account
hub / github.com/VKCOM/kphp / on_php_script_finish_ok

Function on_php_script_finish_ok

runtime/kphp_tracing.cpp:359–426  ·  view source on GitHub ↗

this function is called after shutdown functions have been executed (probably, after timeout) what we do here: 1) invoke php callback — it returns whether we should flush this trace or not (we are in script context, so php callback may write stats via rpc requests) 2) if yes, binlog is flushed as well as all strings accumulated in "flush_strings_binlog" since the last flush (if it's the first time

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

run_shutdown_functionsFunction · 0.85

Calls 15

calc_now_timestampFunction · 0.85
f$get_webserver_statsFunction · 0.85
provide_mem_infoFunction · 0.85
calc_time_offsetFunction · 0.85
is_nullMethod · 0.80
calc_total_sizeMethod · 0.80
append_enum_valuesMethod · 0.80
output_to_json_logMethod · 0.80
to_jsonMethod · 0.80

Tested by

no test coverage detected