mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[ASLog] Add new ASProfilingSignpost defines for System Trace flags. (#2370)
* [Debugging / Profiling] Add kdebug_signpost calls to Range and DataController. * [ASLog] Add new ASProfilingSignpost defines for System Trace flags. * [ASLog] Improve kdebug_signpost logging: ASRunloopQueue and AsyncDisplay, and colors. See https://github.com/facebook/AsyncDisplayKit/pull/2370 for screenshots.
This commit is contained in:
@@ -110,6 +110,8 @@ static void runLoopSourceCallback(void *info) {
|
||||
if (_internalQueue.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
ASProfilingSignpostStart(0, self);
|
||||
|
||||
// Snatch the next batch of items.
|
||||
NSUInteger totalNodeCount = _internalQueue.size();
|
||||
@@ -138,6 +140,8 @@ static void runLoopSourceCallback(void *info) {
|
||||
CFRunLoopSourceSignal(_runLoopSource);
|
||||
CFRunLoopWakeUp(_runLoop);
|
||||
}
|
||||
|
||||
ASProfilingSignpostEnd(0, self);
|
||||
}
|
||||
|
||||
- (void)enqueue:(id)object
|
||||
|
||||
Reference in New Issue
Block a user