Affiliation:
1. Univ. of Glasgow, Glasgow, Scotland, UK
Abstract
We present the first source-level profiler for a compiled, nonstrict, higher-order, purely functional language capable of measuring
time
as well as
space
usage. Our profiler is implemented in a production-quality optimizing compiler for Haskell and can successfully profile large applications. A unique feature of our approach is that we give a formal specification of the attribution of execution costs to cost centers. This specification enables us to discuss our design decisions in a precise framework, prove properties about the attribution of costs, and examine to effects of different program transformations on the attribution of costs. Since it is not obvious how to map this specification onto a particular implementation, we also present an implementation-oriented operational semantics, and prove it equivalent to the specification.
Publisher
Association for Computing Machinery (ACM)
Reference28 articles.
1. Profiling in the presence of optimization and garbage collection;APPEL A. W.;Tech. Rep. CS-TR-197-88, Dept. of Computer Science, Princeton Univ., Princeton, N.J.,1988
2. Implementing Haskell overloading
3. The Chalmers Lazy-ML Compiler
4. BENTLEY J. L. 1982. Writing EFficient Programs. Prentice-Hall Englewood Cliffs N.J. BENTLEY J. L. 1982. Writing EFficient Programs. Prentice-Hall Englewood Cliffs N.J.
5. Lexical profiling: Theory and practice;CLACK C.;J. Funct. Program.,1995
Cited by
35 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献