Script to analyze memory allocation patterns.

Work in progress.