Set the following environment variable
MONO_ENV_OPTIONS=--profile=log:calls,alloc,output=output.mlpd,heapshot=1gc
More documentation can be found here
This will generate a file called output.mpld
and can be found at the following location:
ls -al --block-size=MB Barista.app/Contents/Resources/output.mlpd
To examine this file you can use Xamarin profiler or the mrpof-report command
mprof-report Barista.app/Contents/Resources/output.mlpd