func swizzle()

in Sources/apm-agent-ios/Instrumentation/ViewController/ViewControllerInstrumentation.swift [158:166]


    func swizzle() {
      swap { previousImplementation -> BlockSignature in { viewController, animated in
        previousImplementation(viewController, self.selector, animated)
        ViewControllerInstrumentation
          .traceLogger
          .stopTrace(associatedObject: viewController,
                     preferredName: getViewControllerName(viewController))
      }}
    }