Package daikon.tools

Class DtracePartitioner

    • Constructor Detail

      • DtracePartitioner

        public DtracePartitioner​(String filename)
        Parameters:
        filename - the Daikon trace file to be partitioned
    • Method Detail

      • remove

        public void remove​(@GuardSatisfied DtracePartitioner this)
        Not implemented, because this class does not modify the underlying trace file.
        Specified by:
        remove in interface Iterator<String>
      • assignToBucket

        public String assignToBucket​(String invocation)
        Returns the program point name given by the input invocation.
        Specified by:
        assignToBucket in interface Partitioner<String,​String>
      • patchValues

        public List<StringpatchValues​(List<String> enters)
        Same as patchValues(List, boolean) with second arg=false.
        Parameters:
        enters - a list of program point names
        Returns:
        an ArrayList containing all of the elements of 'enters'. The original order is NOT guaranteed.
      • patchValues

        public List<StringpatchValues​(List<String> enters,
                                        boolean includeUnreturnedEnters)
        Finds the exits that correspond to Enters.

        Modifies: none

        Parameters:
        enters - a list of program point names
        includeUnreturnedEnters - ensures that any ENTER ppt invocations will definitely have a corresponding EXIT ppt invocation following them
        Returns:
        an ArrayList containing all of the elements of 'enters'. The original order is NOT guaranteed.