发明名称 SEMANTIC STACK TRACE
摘要 The present disclosure provides methods and systems for instrumenting a “semantic stack trace” (SST), where semantic information and dependency relationships between a plurality of code elements (“elements”) are captured during runtime execution of various front-end declarative languages, and are subsequently extracted for display in a SST-enabled interactive user interface with traversing capability. Embodiments of the present invention enable a framework for traversing and debugging complex code, providing an unprecedented lens into understanding code behavior in mixed imperative and declarative construction languages.
申请公布号 US2014229919(A1) 申请公布日期 2014.08.14
申请号 US201313763431 申请日期 2013.02.08
申请人 Facebook, Inc. 发明人 Spiridonov Alexey;Jacobs William
分类号 G06F11/36 主分类号 G06F11/36
代理机构 代理人
主权项 1. A method comprising: recording into a first node a mapping of a current stack trace in response to an execution of a first instruction for constructing a first element of a plurality of elements in a computer program, wherein the current stack trace is a stack trace that contains stack frames generated up to a particular point in the execution of code instructions in the computer program; storing the first node in a data structure suitable for a plurality of nodes; incrementally updating the first node by recording into the first node a first updated mapping of the current stack trace in response to the execution of a first subsequent instruction having the first element as a parameter; recording into a second node the mapping of the current stack trace in response to the execution of a second instruction for constructing a second element of the plurality of elements in the computer program; storing the second node in the data structure, wherein the second node comprises: a portion of the mapping of the current stack trace; anda pointer to the first node; incrementally updating the second node by recording into the second node a second updated mapping of the current stack trace in response to the execution of a second subsequent instruction having the second element as the parameter; and generating a node string from the plurality of nodes, including at least the first node and the second node, in response to a determination that no additional instruction for constructing an element exists.
地址 Menlo Park CA US