Improves profiler and prints function arguments in json.