LKS_MethodTraceManager.h 707 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // LKS_MethodTraceManager.h
  3. // LookinServer
  4. //
  5. // Created by Li Kai on 2019/5/22.
  6. // https://lookin.work
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface LKS_MethodTraceManager : NSObject
  10. + (instancetype)sharedInstance;
  11. /// selName 不可以是 "dealloc"
  12. - (void)addWithClassName:(NSString *)className selName:(NSString *)selName;
  13. - (void)removeWithClassName:(NSString *)className selName:(NSString *)selName;
  14. /**
  15. @[
  16. @{@"class": @"UIViewController", @"sels": @[@"init", @"viewDidAppear:"]},
  17. @{@"class": @"UIView", @"sels": @[@"init", @"layoutSubviews"]}
  18. ];
  19. */
  20. - (NSArray<NSDictionary<NSString *, id> *> *)currentActiveTraceList;
  21. - (NSArray<NSString *> *)allClassesListInApp;
  22. @end