@@ -525,9 +525,18 @@ public int MaxQueueItems
525525#if MEMORY_DUMP_SUPPORTED
526526
527527 /// <summary>
528+ /// <para>
528529 /// Configures a heap dump to be captured if the percentage of memory used exceeds a certain threshold.
529530 /// This can be useful to diagnose memory leaks.
531+ /// </para>
532+ /// <para>
533+ /// Note: This feature requires `dotnet-gcdump` to be installed globally on the machine or container where the heap
534+ /// dumps will be captured. You can install this by running: `dotnet tool install --global dotnet-gcdump`
535+ /// </para>
530536 /// </summary>
537+ /// <remarks>
538+ /// This API is experimental and may change in future versions.
539+ /// </remarks>
531540 /// <param name="memoryPercentageThreshold">
532541 /// The memory threshold at which to trigger a heap dump, as a percentage of total available memory.
533542 /// Must be a number between 1 and 99.
@@ -538,6 +547,7 @@ public int MaxQueueItems
538547 /// </param>
539548 /// <param name="level">Optional parameter controlling the event level associated with heap dumps.
540549 /// Defaults to <see cref="SentryLevel.Warning"/>.</param>
550+ [ Experimental ( DiagnosticId . ExperimentalFeature ) ]
541551 public void EnableHeapDumps ( short memoryPercentageThreshold , Debouncer ? debouncer = null , SentryLevel level = SentryLevel . Warning )
542552 => EnableHeapDumps ( HeapDumpTriggers . MemoryPercentageThreshold ( memoryPercentageThreshold ) , debouncer , level ) ;
543553
@@ -550,6 +560,9 @@ public void EnableHeapDumps(short memoryPercentageThreshold, Debouncer? debounce
550560 /// dumps will be captured. You can install this by running: `dotnet tool install --global dotnet-gcdump`
551561 /// </para>
552562 /// </summary>
563+ /// <remarks>
564+ /// This API is experimental and may change in future versions.
565+ /// </remarks>
553566 /// <param name="trigger">
554567 /// A custom trigger function that accepts the current memory usage and total available memory as arguments and
555568 /// return true to indicate that a heap dump should be captured or false otherwise.
@@ -560,6 +573,7 @@ public void EnableHeapDumps(short memoryPercentageThreshold, Debouncer? debounce
560573 /// </param>
561574 /// <param name="level">Optional parameter controlling the event level associated with heap dumps.
562575 /// Defaults to <see cref="SentryLevel.Warning"/>.</param>
576+ [ Experimental ( DiagnosticId . ExperimentalFeature ) ]
563577 public void EnableHeapDumps ( HeapDumpTrigger trigger , Debouncer ? debouncer = null , SentryLevel level = SentryLevel . Warning )
564578 => HeapDumpOptions = new HeapDumpOptions ( trigger , debouncer ?? Debouncer . PerApplicationLifetime ( ) , level ) ;
565579
0 commit comments