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

        if len(args) > 0:
            for func in args:
                if callable(func):
                    self.add_function(func)
示例#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)