Skip to content

Commit e8c8f48

Browse files
committed
Record backtrace is now turned on as default
1 parent c8284d2 commit e8c8f48

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Example/HeapInspectorExample/HeapInspectorExample/RMOAppDelegate.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
1717
if (![[self class] isRunningTests]) {
1818
[HINSPDebug start];
1919
[HINSPDebug addClassPrefixesToRecord:@[@"RM"]];
20-
[HINSPDebug recordBacktraces:YES];
2120
}
2221

2322
RMRootViewController *rootViewController = [[RMRootViewController alloc] init];

HeapInspector/HINSPDebug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN
2626
/// You can also record classes that are owned by specific Swift modules
2727
+ (void)addSwiftModulesToRecord:(NSArray <NSString *> *)swiftModules;
2828

29-
// Default is NO
29+
// Default is YES
3030
+ (void)recordBacktraces:(BOOL)recordBacktraces;
3131

3232
@end

HeapInspector/HINSPDebug.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ - (instancetype)init
3030
self = [super init];
3131
if (self) {
3232
[NSObject startSwizzle];
33+
[[self class] recordBacktraces:YES];
3334

3435
CGRect rect = [UIScreen mainScreen].bounds;
3536
HINSPDebugWindow *window = [[HINSPDebugWindow alloc] initWithFrame:rect];

0 commit comments

Comments
 (0)