An improved method, apparatus, and computer instructions for compressing
trace data. An instruction stream is identified, and in response to
identifying the instruction stream, the instruction addresses in the
instruction stream are replaced with a stream identifier to form
compressed trace data. Data addresses may be related to instructions in
the instruction stream to generate a data trace component in the
compressed trace data.