发明名称 QUEUE DEBUGGING USING STORED BACKTRACE INFORMATION
摘要 When queuing work items for asynchronous execution, the approaches set forth herein enable a debugger to provide more meaningful and complete stack trace information for enqueued work items. An example system identifies a work item to be enqueued for asynchronous execution as a separate thread during runtime of a program. Upon enqueuing the work item in an execution queue, the system captures pre-queue stack trace information associated with the work item, and associates the pre-queue stack trace information with the work item. The system removes the work item from the execution queue for execution, wherein the execution is associated with current stack trace information separate from the pre-queue stack trace information. Upon detecting an event associated with executing the work item, the system merges the pre-queue stack trace information with the current stack trace information to yield a merged stack trace.
申请公布号 US2015347271(A1) 申请公布日期 2015.12.03
申请号 US201414292777 申请日期 2014.05.30
申请人 Apple Inc. 发明人 Payne David Vernon;Steffen Daniel Andreas;Ong Han Ming;Molenda Jason;Orr Kenneth Scott;Stone Katherine Blake
分类号 G06F11/36 主分类号 G06F11/36
代理机构 代理人
主权项 1. A method comprising: identifying a task to be enqueued for asynchronous execution as a separate thread during runtime of a program; upon enqueuing the task in an execution queue, capturing pre-queue stack trace information associated with the task; associating the pre-queue stack trace information with the task; removing the task from the execution queue for execution, wherein the execution is associated with current stack trace information separate from the pre-queue stack trace information; upon detecting an event associated with executing the task, merging the pre-queue stack trace information with the current stack trace information to yield a merged stack trace; and if the event is not detected upon completion of the execution of the task, removing the pre-queue stack trace information and the current stack trace information.
地址 Cupertino CA US