EFFICIENTLY COUNTING PROGRAM EVENTS WITH SUPPORT FOR ONLINE QUERIES

被引:11
作者
BALL, T [1 ]
机构
[1] UNIV WISCONSIN,MADISON,WI
来源
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS | 1994年 / 16卷 / 05期
关键词
CONTROL-FLOW GRAPH; COUNTING; INSTRUMENTATION;
D O I
10.1145/186025.186027
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The ability to count events in a program's execution is required by many program analysis applications. We present an instrumentation method for efficiently counting events in a program's execution, with support for on-line queries of the event count. Event counting differs from basic block profiling in that an aggregate count of events is kept rather than a set of counters. Due to this difference, solutions to basic block profiling are not well suited to event counting. Our algorithm finds a subset of points in a program to instrument, while guaranteeing that accurate event counts can be obtained efficiently at every point in the execution.
引用
收藏
页码:1399 / 1410
页数:12
相关论文
共 12 条
[11]  
SAMPLES AD, 1991, UCBCSD91627 U CAL RE
[12]  
SARKAR V, 1989, SIGPLAN NOTICES, V24, P298, DOI 10.1145/74818.74845