Package 

Class StackTraceConverter


  • @ApiStatus.Internal() 
    public final class StackTraceConverter
    
                        

    Converts a list of AnrStackTrace objects captured during ANR detection into a object suitable for profiling telemetry.

    This converter handles:

    • Converting StackTraceElement to SentryStackFrame
    • Deduplicating frames based on their signature
    • Building stack references using frame indices
    • Creating samples with timestamps
    • Populating thread metadata
    • Method Summary

      Modifier and Type Method Description
      static SentryProfile convert(@NotNull() AnrProfile anrProfile) Converts a list of AnrStackTrace objects to a SentryProfile.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • convert

        @NotNull() static SentryProfile convert(@NotNull() AnrProfile anrProfile)

        Converts a list of AnrStackTrace objects to a SentryProfile.

        Parameters:
        anrProfile - The ANR Profile