/// <summary> /// Constructs a new MemoryProfilingRunSummary. /// </summary> /// <param name="profilingRun">The profiling run being summarized.</param> /// <param name="totalGarbageGenerationBytesConstraint">The constraint on garbage generation.</param> /// <param name="garbageCollectionCountConstraint">The constraint on garbage collection count.</param> public MemoryProfilingRunSummary(MemoryProfilingRun profilingRun, uint totalGarbageGenerationBytesConstraint, uint garbageCollectionCountConstraint) { MemoryProfilingRun = profilingRun; m_totalGarbageGenerationBytesConstraint = totalGarbageGenerationBytesConstraint; m_garbageCollectionCountConstraint = garbageCollectionCountConstraint; m_activeConstraints = ConstraintEnum.GARBAGE_GENERATION_CONSTRAINT | ConstraintEnum.GARBAGE_COLLECTION_CONSTRAINT; }
/// <summary> /// Constructs a new MemoryProfilingRunSummary. /// </summary> /// <param name="profilingRun">The profiling run being summarized.</param> public MemoryProfilingRunSummary(MemoryProfilingRun profilingRun) { MemoryProfilingRun = profilingRun; m_totalGarbageGenerationBytesConstraint = m_garbageCollectionCountConstraint = 0; m_activeConstraints = 0; }