From Apache OpenOffice Wiki
Jump to: navigation, search

Performance 170.png
Performance Project


Quick Navigation




About this template


RTL_LOGFILE is a developer feature of OpenOffice.org that can be used to get wall clock based time stamps for particular code points. It can be used for instance in automated performance tests. This section describes its use for profiling load and save operations of ODF documents.

Use Cases

The use of RTL_LOGFILE is advantageous, compared to for instance the use of a profiler, if the performance data is required for a large amount of load or save operations, or if the performance of two OpenOffice.org builds shall be compared with as little effort as possible. The data that can be collected by RTL_LOGFILE is neither precise nor detailed enough to actually profile for instance the loading or saving a particular document, but it is still is detailed and precise enough for a rough analysis, for regression tests or performance metrics, or to figure out which effect a particular performance improvement has for a large set of data.

Possible use cases are:

  • The comparison of load save times for a large set of document between a master build and a CWS.
  • The comparison of load save times for a large set of document between a master build and a developer build that implements a particular improvement.
  • To provide metrics that show performance improvements that have been achieved.
  • To find documents whose load or save time is significant above or below the average, and which therefore are either
    • worth a deeper investigation (with other tools), or
    • appear to be non appropriate as test documents for a performance improvement that is assumed to effect all documents.


In order to use RTL_LOGFILE as described above, two tasks need to be completed:

  • Additional macros have to be inserted into the OpenOffice.org source code that provide the information which documents have been loaded or saved. This implementation is in progress as task 100301 which is assigned to CWS perftest08.
  • A configurable analysis tool is required that allows comparisons between load/save data for individual documents, and between load/save data for individual OpenOffice.org instances. This tools is called RTLLog2ODF and is described here.
Personal tools