Method and system to instrument virtual function calls

    公开(公告)号:US07103878B2

    公开(公告)日:2006-09-05

    申请号:US10020631

    申请日:2001-12-13

    IPC分类号: G06F9/44 G06F9/45

    摘要: A method and system for analyzing a virtual function. In one embodiment, the present invention determines whether a virtual table exists for a virtual function, and determines a call type for the virtual function. In the present embodiment, provided the virtual table is located, the present invention replaces an existing address for the virtual function with a new address such that the new address points to instrumentation code. In this embodiment, upon a call to the virtual function, the present invention loads the new address from the virtual table such that execution is directed to the instrumentation code. The present embodiment continues execution and executes the instrumentation code such that control is delivered to the instrumentor.

    Method and system to analyze inlined functions
    2.
    发明授权
    Method and system to analyze inlined functions 失效
    分析内联函数的方法和系统

    公开(公告)号:US07360207B2

    公开(公告)日:2008-04-15

    申请号:US10016949

    申请日:2001-12-13

    IPC分类号: G06F9/45

    摘要: A method and a system for examining an inlined function using a performance analysis tool are described. An inlined function is identified in computer code. Upon identification of the inlined function, and for example in response to executing a breakpoint associated with the inlined function, a performance analysis tool is used to perform desired task on the inlined function.

    摘要翻译: 描述了使用性能分析工具检查内联功能的方法和系统。 在计算机代码中标识了内联函数。 在识别内联函数时,并且例如响应于执行与内联函数相关联的断点,使用性能分析工具来对内联函数执行期望的任务。