Hostname: page-component-89b8bd64d-9prln Total loading time: 0 Render date: 2026-05-08T01:34:19.908Z Has data issue: false hasContentIssue false

Lexical profiling: theory and practice

Published online by Cambridge University Press:  07 November 2008

Chris Clack
Affiliation:
Department of Computer Science, University College London, Gower Street, London WC1E, UK (email: {clack,sclayman,dparrott}@cs.ucl.ac.uk)
Stuart Clayman
Affiliation:
Department of Computer Science, University College London, Gower Street, London WC1E, UK (email: {clack,sclayman,dparrott}@cs.ucl.ac.uk)
David Parrott
Affiliation:
Department of Computer Science, University College London, Gower Street, London WC1E, UK (email: {clack,sclayman,dparrott}@cs.ucl.ac.uk)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

This paper addresses the issue of analysing the run-time behaviour of lazy, higher-order functional programs. We examine the difference between the way that functional programmers and functional language implementors view program behaviour. Existing profiling techniques are discussed and a new technique is proposed which produces results that are straightforward for programmers to assimilate. The new technique, which we call lexical profiling, collects information about the run-time behaviour of functional programs, and reports the results with respect to the original source code rather than simply listing the actions performed at run-time. Lexical profiling complements implementation-specific profiling and is important because it provides a view of program activity which is largely independent of the underlying evaluation mechanism. Using the lexical profiler, programmers may easily relate results back to the source program. We give a full implementation of the lexical profiling technique for a sequential, interpretive graph reduction engine, and extensions for compiled and parallel graph reduction are discussed.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 1995
Submit a response

Discussions

No Discussions have been published for this article.