[DO NOT MERGE] Replace API response by profiler output if profile param is set.