Example #1
0
    def __init__(self, *args):
        self.profile = _LineProfiler()

        if len(args) > 0:
            for func in args:
                if callable(func):
                    self.add_function(func)
Example #2
0
    def __init__(self, *args):
        self.profile = _LineProfiler()

        if len(args) > 0:
            for func in args:
                if isinstance(func, collections.Callable):
                    self.add_function(func)