发明名称 Microstackshots
摘要 A method and apparatus of a device that captures a stackshot of an executing process is described. In an exemplary embodiment, the device detects an interrupt of the process occurring during the execution of the process, where the process execution can be in a kernel space and user space, and the interrupt occurs during the user space. The device further determines whether to capture a stackshot during the interrupt using a penalty function. If the stackshot is to be captured, the device captures the stackshot and saves the stackshot.
申请公布号 US9348732(B2) 申请公布日期 2016.05.24
申请号 US201313842938 申请日期 2013.03.15
申请人 Apple Inc. 发明人 Van Vechten Kevin James;Sen Shantonu;Federighi Craig M.;Tribble Guy L.
分类号 G06F7/38;G06F9/00;G06F9/44;G06F11/36;G06F11/07 主分类号 G06F7/38
代理机构 Blakely, Sokoloff, Taylor & Zafman 代理人 Blakely, Sokoloff, Taylor & Zafman
主权项 1. A non-transitory machine-readable medium having executable instructions to cause one or more processing units to perform a method to capture a stackshot of a process, the method comprising: detecting a system interrupt of the process occurring during runtime of the process, wherein the process runtime includes kernel runtime and user runtime, and the interrupt occurs during the user runtime; determining whether to capture the stackshot during the system interrupt using a penalty function; and if the stackshot is to be captured, capturing the stackshot, andsaving the stackshot.
地址 Cupertino CA US