Update the code to avoid memory issues.

Instead of creating a different structure for running the trace, re-use
the AllocEntry structure. This avoids having to allocate a whole new
copy of the allocation entries, especially, for really long traces.

Test: Ran traces.
Change-Id: I74b5140823f36da511694fbb05425c3b86f0c7cd
1 file changed