Class StackTraceElement.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • methodName

        public StackTraceElement.Builder methodName​(String methodName)
        Name of the method containing the execution point.
        Parameters:
        methodName - the value to set
        Returns:
        this builder
      • fileName

        public StackTraceElement.Builder fileName​(String fileName)
        Name of the source file containing the execution point.
        Parameters:
        fileName - the value to set
        Returns:
        this builder
      • lineNumber

        public StackTraceElement.Builder lineNumber​(Integer lineNumber)
        Line number of the source line containing the execution point.
        Parameters:
        lineNumber - the value to set
        Returns:
        this builder
      • className

        public StackTraceElement.Builder className​(String className)
        Name of the class containing the execution point.
        Parameters:
        className - the value to set
        Returns:
        this builder
      • weightage

        public StackTraceElement.Builder weightage​(Float weightage)
        The weight distribution that denotes the percentage occurrence of a method in the captured snapshots.
        Parameters:
        weightage - the value to set
        Returns:
        this builder