Interface ILineCompareResult


  • public interface ILineCompareResult
    Line compare result. Contains:
    • Line source code
    • Line number
    • Pure and full durability for both base and other results
    • The diff of pure and full durabilities (in percents, relative to pure/full durability of base line result)
    • Module ID
    • Owner class
    • The name of module this line belongs to
    • The name of method this line belongs to
    • The project containing the module the line associated with this result belongs to
    • Method Detail

      • getLine

        String getLine()
        Gets line source code.
        Returns:
        Line source code or dummy string if not set yet.
      • getLineNo

        int getLineNo()
        Gets line number.
        Returns:
        Line number or 0 if not set yet.
      • getFrequency

        long getFrequency​(CompareSide side)
        Gets the amount of calls of this line.
        Parameters:
        side - BASE if should return the amount of calls of this line in base result, (the result used as base for comparing), COMPARED otherwise.
        Returns:
        The amount of calls of this line. Always greater or equal to 0.
      • getFrequencies

        Map<DebugTargetType,​Long> getFrequencies​(CompareSide side)
        Gets amounts of calls of this line grouped by debug targets.
        Parameters:
        side - Compare side to get amount of calls for. Cannot be null.
        Returns:
        Map with amount of calls grouped be debug targets. Never null.
      • getPureDurability

        long getPureDurability​(CompareSide side)
        Gets pure durability of execution of this line.
        Parameters:
        side - BASE if should return pure durability of this line in base result (the result used as base for comparing), COMPARED otherwise.
        Returns:
        Pure durability of execution of this line. Always greater of equal to 0.
      • getPureDurabilities

        Map<DebugTargetType,​Long> getPureDurabilities​(CompareSide side)
        Gets pure durabilities of this line's calls grouped by debug targets.
        Parameters:
        side - Compare side to get pure durabilities of calls for. Cannot be null.
        Returns:
        Map with pure durabilities of calls grouped by debug targets. Never null.
      • getDurability

        long getDurability​(CompareSide side)
        Gets full time of execution of this line.
        Parameters:
        inBase - BASE if should return durability of this line in base result (the result used as base for comparing), COMPARED otherwise.
        Returns:
        Full time of execution of this line. Always greater or equal to 0.
      • getDurabilities

        Map<DebugTargetType,​Long> getDurabilities​(CompareSide side)
        Gets durabilities of this line's calls grouped by debug targets.
        Parameters:
        side - Compare side to get durabilities of calls for. Cannot be null.
        Returns:
        Map with durabilities of calls grouped by debug targets. Never null.
      • getPureDurabilityDiff

        double getPureDurabilityDiff()
        Gets the diff of pure durability (in percents, relative to the pure durability of base line result). For example, if the pure durabilities of base and compared results are 100ms and 125ms, then the diff will be (125 - 100) / 100 = 25%.
        Returns:
        The diff of pure durabilities in percents relative to the pure durability of base line result.
      • getPureDurabilityDiffs

        Map<DebugTargetType,​Double> getPureDurabilityDiffs()
        Gets diffs of pure durability grouped by debug targets. By default diff value for every debug target is initialized with 0.0. For example, if the pure durabilities of base and compared results on server are 100ms and 125ms, and on managed client are 50ms and 75ms, then this method will return {SERVER=25.0, MANAGED_CLIENT=50.0, SERVER_EMULATION=0.0, CLIENT=0.0, ... }.
        Returns:
        Diffs of pure durabilities grouped by debug targets. Never null.
      • getDurabilityDiff

        double getDurabilityDiff()
        Gets the diff of full durability (in percents, relative to the full durability of base line result). For example, if the full durabilities of base and compared results are 100ms and 125ms, then the diff will be (125 - 100) / 100 = 25%.
        Returns:
        The diff of full durabilities in percents relative to the full durability of base line result.
      • getDurabilityDiffs

        Map<DebugTargetType,​Double> getDurabilityDiffs()
        Gets diffs of durability grouped by debug targets. By default diff value for every debug target is initialized with 0.0. For example, if the durabilities of base and compared results on server are 100ms and 125ms, and on managed client are 50ms and 75ms, then this method will return {SERVER=25.0, MANAGED_CLIENT=50.0, SERVER_EMULATION=0.0, CLIENT=0.0, ... }.
        Returns:
        Diffs of durabilities grouped by debug targets. Never null.
      • getModuleId

        BSLModuleIdInternal getModuleId()
        Gets ID of module this line belongs to.
        Returns:
        Parent module ID. Never null.
      • getOwnerClass

        org.eclipse.emf.ecore.EClass getOwnerClass()
        Gets the class of the owner of module containing the line associated with this result.
        Returns:
        owner The class of the owner of module. Never null.
      • getModuleName

        String getModuleName()
        Returns the name of module containing the line associated with this object.
        Returns:
        The name of module or dummy string if module is not found or not set yet.
      • getMethodName

        String getMethodName()
        Gets the name of method containing the line associated with this result.
        Returns:
        The name of method or dummy string if method is not found or not set yet.
      • getProject

        org.eclipse.core.resources.IProject getProject()
        Gets the project containing the line this result is associated with.
        Returns:
        The project associated with this result. Never null.
      • getDebugTargets

        Set<DebugTargetType> getDebugTargets()
        Gets debug targets that executed this line.
        Returns:
        Set with debug targets that executed this line. Never null.