Class RunSpec


  • public final class RunSpec
    extends Object
    Execution budget and tracing configuration for queries that require running code.
    • Field Detail

      • DEFAULT

        public static final RunSpec DEFAULT
    • Constructor Detail

      • RunSpec

        public RunSpec​(int seeds,
                       int maxInstructions,
                       int maxDepth,
                       RunSpec.TraceMode traceMode,
                       int timeBudgetMs)
        Creates a run specification.
        Parameters:
        seeds - the number of seed inputs per entry point
        maxInstructions - the instruction execution cap
        maxDepth - the maximum call depth
        traceMode - how much execution trace to retain
        timeBudgetMs - the wall-clock budget in milliseconds
    • Method Detail

      • seeds

        public int seeds()
        Returns:
        the number of seed inputs per entry point
      • maxInstructions

        public int maxInstructions()
        Returns:
        the instruction execution cap
      • maxDepth

        public int maxDepth()
        Returns:
        the maximum call depth
      • timeBudgetMs

        public int timeBudgetMs()
        Returns:
        the wall-clock budget in milliseconds
      • builder

        public static RunSpec.Builder builder()
        Creates a builder initialized with the default settings.
        Returns:
        a new builder
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object