HINSPDebug.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // RMDebug.h
  3. //
  4. // Created by Christian Menschel on 16.08.14.
  5. // Copyright (c) 2014 tapwork. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface HINSPDebug : NSObject
  10. /// Shows the HeapInspector
  11. + (void)start;
  12. /// Stops the HeapInspector and removes the inspector's view
  13. + (void)stop;
  14. // Shows HeapInspector (if not visible yet) and starts the record immediately
  15. + (void)startRecord;
  16. // Stops record - but does not hide the HeapInspector
  17. + (void)stopRecord;
  18. /// Add some (or only one) class prefix like `UI` OR `MK` to record classes that match the prefix only.
  19. /// It's highly recommended to record a specific class or prefix -
  20. /// otherwise all Cocoa classes will be recorded, which slows down the performance.
  21. /// This improves performance and readibility
  22. + (void)addClassPrefixesToRecord:(NSArray <NSString *> *)classPrefixes;
  23. /// You can also record classes that are owned by specific Swift modules
  24. + (void)addSwiftModulesToRecord:(NSArray <NSString *> *)swiftModules;
  25. // Default is YES
  26. + (void)recordBacktraces:(BOOL)recordBacktraces;
  27. @end
  28. NS_ASSUME_NONNULL_END