[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:
appleguy
2016-10-13 10:31:22 -07:00
committed by Adlai Holler
parent 8729bc0502
commit 4595ebc06e
6 changed files with 59 additions and 3 deletions

View File

@@ -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