首页> 外国专利> LOCKLESS MEASUREMENT OF EXECUTION TIME OF CONCURRENTLY EXECUTED SEQUENCES OF COMPUTER PROGRAM INSTRUCTIONS

LOCKLESS MEASUREMENT OF EXECUTION TIME OF CONCURRENTLY EXECUTED SEQUENCES OF COMPUTER PROGRAM INSTRUCTIONS

机译:计算机程序指令的同时执行序列的执行时间的无锁定测量

摘要

A computer system supports measuring execution time of concurrent threads. A thread allocates a timing buffer in thread local storage. During execution, the thread has access to a system timer which it can sample with microsecond or better precision with a single instruction. For any sequence of instructions within the thread for which execution time is to be measured, the sequence of instructions includes an identifier, a start command, and an end command. The start command samples the system timer to obtain a start time, and stores the identifier and the start time in the timing buffer in the thread local storage. The end command samples the system timer to obtain an end time, and updates the data for the corresponding identifier in the timing buffer, to indicate an elapsed time for execution of the sequence of instructions.
机译:计算机系统支持测量并发线程的执行时间。线程在线程本地存储中分配计时缓冲区。在执行期间,线程可以访问系统计时器,该计时器可以通过一条指令以微秒或更佳的精度进行采样。对于线程中要对其执行时间进行测量的任何指令序列,该指令序列包括标识符,开始命令和结束命令。启动命令对系统计时器进行采样以获得启动时间,并将标识符和启动时间存储在线程本地存储中的计时缓冲区中。结束命令对系统计时器进行采样以获得结束时间,并更新计时缓冲区中对应标识符的数据,以指示执行指令序列所用的时间。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号