Package io.sentry

Interface IProfileConverter


@Internal public interface IProfileConverter
Interface for converting JFR (Java Flight Recorder) files to Sentry profiles. This abstraction allows different profiling implementations to be used without direct dependencies between modules.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull SentryProfile
    convertFromFile(@NotNull String jfrFilePath)
    Converts a JFR file to a SentryProfile.
  • Method Details

    • convertFromFile

      @NotNull @NotNull SentryProfile convertFromFile(@NotNull @NotNull String jfrFilePath) throws IOException
      Converts a JFR file to a SentryProfile.
      Parameters:
      jfrFilePath - The path to the JFR file to convert
      Returns:
      The converted SentryProfile
      Throws:
      IOException - If an error occurs while reading or converting the file