6533b858fe1ef96bd12b6592

RESEARCH PRODUCT

Run-time profiling of functional logic programs

Bernd BrasselJosep SilvaMichael HanusFrank HuchGermán Vidal

subject

Profiling (computer programming)Functional programmingTheoretical computer sciencebusiness.industryComputer scienceSubroutineComputationSoftware developmentProgram transformationcomputer.software_genreSemanticsSemantics of logicLogical programmingbusinesscomputerInterpreter

description

In this work, we introduce a profiling scheme for modern functional logic languages covering notions like laziness, sharing, and non-determinism. Firstly, we instrument a natural (big-step) semantics in order to associate a symbolic cost to each basic operation (e.g., variable updates, function unfoldings, case evaluations). While this cost semantics provides a formal basis to analyze the cost of a computation, the implementation of a cost-augmented interpreter based on it would introduce a huge overhead. Therefore, we also introduce a sound transformation that instruments a program such that its execution—under the standard semantics—yields not only the corresponding results but also the associated costs. Finally, we describe a prototype implementation of a profiler based on the developments in this paper.

http://www.scopus.com/inward/record.url?eid=2-s2.0-26444525563&partnerID=MN8TOARS