arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0311016cs.PL
收藏

基于跟踪分析的通用高效程序监控

Generic and Efficient Program Monitoring by trace analysis

Erwan Jahier, Mireille Ducass'e

摘要:

程序执行监视包括检查给定属性的整个执行,以收集全局运行时信息。监视对于维护程序非常有用。然而,应用程序开发人员面临着以下困境:要么他们使用现有的工具,从来没有完全符合他们的需求,或者他们投入大量的精力来实现监控代码。在这篇文章中,我们认为,当一个面向事件的跟踪器存在,编译器开发人员可以使应用程序开发人员很容易地编码自己的,相关的,监视器,这将有效地运行。我们提出了一个高层次的运营商,称为foldt,它对执行跟踪操作。我们的方法的一个主要优点是,它允许一个干净的关注点分离;监视器的定义既不是交织在用户源代码,也不是在语言编译器。我们给出了一些应用程序的foldt运营商计算监视器水星程序执行:执行配置文件,图形化的抽象视图,和两个测试覆盖测量。每个例子都是由几个简单的水星行实现的。详细的测量表明,foldt的基本机制执行数百万个执行事件的性能是可以接受的。

英文摘要:

Program execution monitoring consists of checking whole executions for given properties in order to collect global run-time information. Monitoring is very useful to maintain programs. However, application developers face the following dilemma: either they use existing tools which never exactly fit their needs, or they invest a lot of effort to implement monitoring code. In this article we argue that, when an event-oriented tracer exists, the compiler developers can enable the application developers to easily code their own, relevant, monitors which will run efficiently. We propose a high-level operator, called foldt, which operates on execution traces. One of the key advantages of our approach is that it allows a clean separation of concerns; the definition of monitors is neither intertwined in the user source code nor in the language compiler. We give a number of applications of the foldt operator to compute monitors for Mercury program executions: execution profiles, graphical abstract views, and two test coverage measurements. Each example is implemented by a few simple lines of Mercury. Detailed measurements show acceptable performance of the basic mechanism of foldt for executions of several millions of execution events.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑