def __init__(self, *args): self.profile = _LineProfiler() if len(args) > 0: for func in args: if callable(func): self.add_function(func)
def __init__(self, *args): self.profile = _LineProfiler() if len(args) > 0: for func in args: if isinstance(func, collections.Callable): self.add_function(func)