Visual Studio atleast has a hidden compiler option /d1reportSingleClassLayout (starting at ~32:00).
Usage: /d1reportSingleClassLayoutCLASSNAME where there shall be no whitespace between the compiler switch and CLASSNAME (obviously replace this with the name of the class you'e interested in).