in JetBrains.Profiler.SelfApi/src/DotMemory.cs [306:315]
public static void GetSnapshot(string name = null)
{
lock (Mutex)
{
if (_session == null)
throw new InvalidOperationException("The profiling session isn't active: forgot to call Attach()?");
_session.GetSnapshot(name);
}
}