首页> 外国专利> Method and system for periodic trace sampling for real-time generation of segments of call stack trees augmented with call stack position determination

Method and system for periodic trace sampling for real-time generation of segments of call stack trees augmented with call stack position determination

机译:周期性跟踪采样的方法和系统,用于实时生成通过调用堆栈位置确定增强的调用堆栈树的分段

摘要

A method and system for profiling a program using periodic trace sampling is provided. During the execution of the program, sample-based profiling of the executing program is performed—for a predetermined period, a profiler performs trace processing for the program, after which the profiler pauses and does not perform trace processing for a predetermined period or only performs lightweight processing for a predetermined period. The periods controlling the profiler may be selected by a user, and the periods may be measured by temporal or non-temporal metrics. The user may also specify parameters that are used to filter events so that profiling is performed only for specified threads or methods. The profiler cycles through these periods, during which selected events are processed to generate a profile of the execution flows within the program. For each sample period, a tree data structure is generated in which nodes of the tree data structure represent the routines of the program that execute during the sample period, as may be indicated by entry and exit events caused by the execution of the routines. At the start of each sample period, execution flow information may be used to create an initial tree data structure. When the execution of the program is complete, the tree data structures from each sample period are merged into a resulting tree data structure.
机译:提供了一种使用定期跟踪采样来对程序进行性能分析的方法和系统。在程序执行期间,将对执行程序进行基于样本的分析并执行预定的时间,探查器将对该程序执行跟踪处理,此后探查器将暂停并在预定的时间内不执行跟踪处理,或者仅执行在预定时间内进行轻量级处理。可以由用户选择控制分析器的周期,并且可以通过时间或非时间度量来测量周期。用户还可以指定用于过滤事件的参数,以便仅对指定的线程或方法执行性能分析。探查器在这些时间段中循环,在此期间处理选定的事件以生成程序内执行流的剖析。对于每个采样周期,生成树数据结构,其中树数据结构的节点表示在采样周期内执行的程序的例程,如例程执行所引起的进入和退出事件所示。在每个采样周期的开始,执行流程信息可用于创建初始树数据结构。程序执行完成后,来自每个采样周期的树数据结构将合并为结果树数据结构。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号