GetTotalMemoryTest

Description
This script allocates blocks of memory and uses System.GC.GetTotalMemory to assess how much memory was reserved with each allocation. It appears that the Mono heap (at least in Windows 64-bit Editor and standalone build, as of Unity 5.4.3f1) always allocates memory in multiples of 4096 bytes.

More info in this forum post.

Usage
To try this for yourself:
 * 1) Copy the script into your project.
 * 2) Add a TestGC component to any active object in your scene.
 * 3) Run the memory from the context menu in the Inspector, or from the run-time GUI.

Note that results are logged with Debug.Log, not displayed on screen.