add support for recording profiling info.
permit clients to tell lineviewer to exit.