in JetBrains.Profiler.Api/src/MemoryProfiler.cs [116:135]
public static void CollectAllocations(bool enable)
{
switch (HabitatInfo.Platform)
{
case JetPlatform.Linux:
if (LinuxHelper.IsCoreApiAlreadyLoaded())
Helper.ThrowIfFail(LibCoreApiSo.V1_Memory_CollectAllocations(Helper.Id, enable));
break;
case JetPlatform.MacOsX:
if (MacOsXHelper.IsCoreApiAlreadyLoaded())
Helper.ThrowIfFail(LibCoreApiDylib.V1_Memory_CollectAllocations(Helper.Id, enable));
break;
case JetPlatform.Windows:
if (WindowsHelper.IsCoreApiAlreadyLoaded())
Helper.ThrowIfFail(CoreApiDll.V1_Memory_CollectAllocations(Helper.Id, enable));
break;
default:
throw new PlatformNotSupportedException();
}
}