def trace_memory_usage(self, frame, event, arg):
        if frame.f_code in self.code_map:
            if event == 'call':
                # "call" event just saves the lineno but not the memory
                self.prevlines.append(frame.f_lineno)
            elif event == 'line':
                self.code_map.trace(frame.f_code, self.prevlines[-1])
                self.prevlines[-1] = frame.f_lineno
            elif event == 'return':
                self.code_map.trace(frame.f_code, self.prevlines.pop())

        if self._original_trace_function is not None:
            (self._original_trace_function)(frame, event, arg)

        return self.trace_memory_usage
Returns URL to remove aggregate from slice
dataset/ETHPy150Open fabianp/memory_profiler/memory_profiler.py/LineProfiler.trace_memory_usage--crossover with--dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/clearinghouse/slice/models.py/Slice.get_agg_remove_url