Determining an actual amount of time a processor consumes in executing a portion of code
    4.
    发明授权
    Determining an actual amount of time a processor consumes in executing a portion of code 有权
    确定处理器在执行代码部分时消耗的实际时间

    公开(公告)号:US07774784B2

    公开(公告)日:2010-08-10

    申请号:US11082398

    申请日:2005-03-17

    IPC分类号: G06F9/46 G06F9/44 G06F11/00

    CPC分类号: G06F11/3423

    摘要: Systems and methods are provided that determine the actual amount of time a processor consumes in executing a code portion. The actual execution time of a code portion may be accurately determined by taking into consideration context switches and/or overhead time corresponding to the code portion. Determining the actual execution time of a code portion may include recording context switches and time values that occur during the execution of the code portion. This information along with overhead measurements may be used to generate the actual execution time of a code portion, as will be described in more detail below. For example, the switched-out intervals resulting from the context switches and the overhead time associated with the time measurements may be subtracted from the elapsed time to produce the actual execution time of a code portion.

    摘要翻译: 提供了确定处理器在执行代码部分时消耗的实际时间量的系统和方法。 可以通过考虑与代码部分相对应的上下文切换和/或开销时间来精确地确定代码部分的实际执行时间。 确定代码部分的实际执行时间可以包括在执行代码部分期间记录上下文切换和时间值。 该信息以及开销测量可以用于生成代码部分的实际执行时间,如将在下面更详细描述的。 例如,从上下文切换产生的切换间隔和与时间测量相关联的开销时间可以从经过的时间中减去以产生代码部分的实际执行时间。