public bool TryClaimInstantiationState() { return Interlocked.CompareExchange(ref isProfilingInstantiations, 1, 0) == 0; }