in exec/src/klio_exec/commands/profile.py [0:0]
def profile(self, what, **kwargs):
if what == "run":
return self._run_pipeline(**kwargs)
elif what == "cpu":
return self._profile_cpu(**kwargs)
elif what == "memory":
return self._profile_memory(**kwargs)
elif what == "memory_per_line":
return self._profile_memory_per_line(**kwargs)
elif what == "timeit":
return self._profile_wall_time_per_line(**kwargs)