@should_profile_core
def start_core_profiling(w3af_core):
 dd_partial = partial(dump_data, w3af_core)
 dump_data_every_thread(dd_partial, DELAY_MINUTES, SAVE_THREAD_PTR)

@ should_profile_core def start_core_profiling ( w3af_core ) : dd_partial = partial ( dump_data , w3af_core ) dump_data_every_thread ( dd_partial , DELAY_MINUTES , SAVE_THREAD_PTR )
if the environment variable w3af_profiling is set to 1 .