instrument the amd loader to capture memory used for each module