Applying the decorator pattern for profiling object-oriented software

E. B. Duffy, J. P. Gibson, B. A. Malloy

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

A profiler can provide valuable information to a developer to facilitate program optimization, debugging or testing. In this paper, we describe the use of the decorator pattern for non-intrusive profiling of object-oriented applications. We provide a formal specification of the decorator pattern, and show that the pattern can be used as a program transformation without altering the external, observable behavior of the system. We refer to such a transformation as a correctness preserving transformation, or CPT. As a CPT, the decorator pattern can be used to non-intrusively profile object-oriented applications and we illustrate this application with an invariant validator for enforcement of design by contract, and for profiling memory. We provide a case study to compare the cost trade-offs of validating invariants at different points in a program.

Original languageEnglish
Title of host publicationProceedings - IWPC 2003
Subtitle of host publication11th IEEE International Workshop on Program Comprehension
PublisherIEEE Computer Society
Pages84-93
Number of pages10
ISBN (Electronic)0769518834
DOIs
Publication statusPublished - 1 Jan 2003
Externally publishedYes
Event11th IEEE International Workshop on Program Comprehension, IWPC 2003 - Portland, United States
Duration: 10 May 200311 May 2003

Publication series

NameProceedings - IEEE Workshop on Program Comprehension
Volume2003-May
ISSN (Print)1092-8138

Conference

Conference11th IEEE International Workshop on Program Comprehension, IWPC 2003
Country/TerritoryUnited States
CityPortland
Period10/05/0311/05/03

Fingerprint

Dive into the research topics of 'Applying the decorator pattern for profiling object-oriented software'. Together they form a unique fingerprint.

Cite this