java.lang.Object
com._1c.g5.v8.dt.internal.profiling.ui.view.methodlist.ModuleStatistic

public class ModuleStatistic extends Object
Object with module statistics:
  • List with statistics of methods belonging to specific module
  • Pure and full time of execution of module's lines
  • Pure percentage of execution of module's lines with reference to overall time of work
  • Server call signal
  • Module name
  • Module owner class.
  • Constructor Details

    • ModuleStatistic

      public ModuleStatistic(String moduleName, org.eclipse.emf.ecore.EClass ownerClass)
      Creates new module statistics object.
      Parameters:
      moduleName - The name of module to associate this object with. Cannot be null.
      ownerClass - The class of the owner of the module associated with this result. Cannot be null.
  • Method Details

    • getMethodStats

      public List<MethodStatistic> getMethodStats()
      Gets list with methods' statistics.
      Returns:
      List with methods' statistics.
    • getPureDurability

      public long getPureDurability()
      Gets pure durability of module's calls.
      Returns:
      Pure durability of module's calls.
    • getPureDurabilities

      public Map<DebugTargetType,Long> getPureDurabilities()
      Gets pure durabilities of this module's calls grouped by debug targets.
      Returns:
      Map with pure durabilities of calls grouped by debug targets. Never null.
    • getDurability

      public long getDurability()
      Gets full durability of module's calls.
      Returns:
      Full durability of module's calls.
    • getDurabilities

      public Map<DebugTargetType,Long> getDurabilities()
      Gets durabilities of this module's calls grouped by debug targets.
      Returns:
      Map with durabilities of calls grouped by debug targets. Never null.
    • getPurePercentage

      public double getPurePercentage()
      Gets pure percentage of work time.
      Returns:
      Pure percentage of work time.
    • getPurePercentages

      public Map<DebugTargetType,Double> getPurePercentages()
      Gets pure percentages of this module's calls grouped by debug targets.
      Returns:
      Map with pure percentages of calls grouped by debug targets. Never null.
    • getServerCallSignal

      public ServerCallSignal getServerCallSignal()
      Gets server call signal.
      Returns:
      Server call signal.
    • getOwnerClass

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

      public String getModuleName()
      Gets the name of module associated with this object.
      Returns:
      The name of module associated with this object or dummy string if module is not found.
    • getDebugTargets

      public Set<DebugTargetType> getDebugTargets()
      Gets types of debug targets that executed code from this module.
      Returns:
      Set with types of debug targets that executed code from this module. Cannot be null, but can be empty if no results have been added yet.
    • add

      public void add(ILineProfilingResult result)
      Adds line statistics. If statistics for method specified in line result already exist, adds them to existing object.
      Parameters:
      stats - Line statistics to be added. Cannot be null.