public static void ForceGc()

in JetBrains.Profiler.Api/src/MemoryProfiler.cs [89:108]


    public static void ForceGc()
    {
      switch (HabitatInfo.Platform)
      {
      case JetPlatform.Linux:
        if (LinuxHelper.IsCoreApiAlreadyLoaded())
          Helper.ThrowIfFail(LibCoreApiSo.V1_Memory_ForceGc(Helper.Id));
        break;
      case JetPlatform.MacOsX:
        if (MacOsXHelper.IsCoreApiAlreadyLoaded())
          Helper.ThrowIfFail(LibCoreApiDylib.V1_Memory_ForceGc(Helper.Id));
        break;
      case JetPlatform.Windows:
        if (WindowsHelper.IsCoreApiAlreadyLoaded())
          Helper.ThrowIfFail(CoreApiDll.V1_Memory_ForceGc(Helper.Id));
        break;
      default:
        throw new PlatformNotSupportedException();
      }
    }