@@ -50,7 +50,9 @@ - (void)_scrollViewDidChangeBounds:(id)obj
50
50
{
51
51
NSMutableString *msg = [NSMutableString string ];
52
52
53
- [msg appendFormat: @" %s tripped!\n\n " ,__PRETTY_FUNCTION__];
53
+ [msg appendFormat: @" %s tripped!\n " ,__PRETTY_FUNCTION__];
54
+
55
+ [msg appendFormat: @" at %@ (mach time: %lf )\n\n " ,[NSDate date ],[NSDate monotonicTimeInterval ]];
54
56
55
57
retryDescribe:
56
58
[msg appendFormat: @" passed object (class <%@ >): %@ \n\n " ,[obj className ],obj];
@@ -136,6 +138,7 @@ - (void)sp_addObserver:(id)notificationObserver selector:(SEL)notificationSelect
136
138
if (notificationSelector == @selector (_scrollViewDidChangeBounds: ) && [notificationName isEqualToString: NSViewBoundsDidChangeNotification ]) {
137
139
NSString *key = [NSString stringWithFormat: @" snd=%p ,obs=%p " ,notificationSender,notificationObserver];
138
140
NSMutableString *val = [NSMutableString string ];
141
+ [val appendFormat: @" at %@ (mach time: %lf )\n " ,[NSDate date ],[NSDate monotonicTimeInterval ]];
139
142
[val appendFormat: @" observer: %1$p (class %2$@ ) description: %1$@ \n " ,notificationObserver,[notificationObserver className ]];
140
143
if ([notificationObserver isKindOfClass: [NSView class ]]) {
141
144
[val appendFormat: @" view info: id=%@ , tag=%ld \n " ,[(NSView *)notificationObserver identifier ], [(NSView *)notificationObserver tag ]];
@@ -176,7 +179,7 @@ + (void)load
176
179
- (void )sp_dealloc
177
180
{
178
181
NSString *key = [NSString stringWithFormat: @" =%p " ,self ];
179
- NSString *val = [NSString stringWithFormat: @" \n dealloc backtrace:\n %@ \n\n " ,[NSThread callStackSymbols ]];
182
+ NSString *val = [NSString stringWithFormat: @" \n %p dealloc \n at %@ (mach time: %lf ) \n backtrace:\n %@ \n\n " , self ,[ NSDate date ],[ NSDate monotonicTimeInterval ] ,[NSThread callStackSymbols ]];
180
183
181
184
[gScrollViewDealloc setObject: val forKey: key];
182
185
0 commit comments