Class MethodStatisticsResult

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

public class MethodStatisticsResult extends Object
Contains ModuleStatistic objects with methods and their performance statistics.
  • Constructor Details

    • MethodStatisticsResult

      public MethodStatisticsResult(IProfilingResult results)
      Creates new method statistics result using passed profiling result.
      Parameters:
      results - Profiling result to be used. Cannot be null.
  • Method Details

    • getResults

      public ModuleStatistic getResults(String moduleName)
      Gets module statistics.
      Parameters:
      moduleName - The name of module to get results for. Cannot be null.
      Returns:
      ModuleStatistics for specified module. Can be null if there are no results for module with specified name.
    • getAllMethodStats

      public List<MethodStatistic> getAllMethodStats()
      Gets all method statistics, regardless of module or target. Still, it is possible that object may contain statistics for one target of contain nothing at all (if results for targets are yet to be obtained).
      Returns:
      All methods' statistics being in cache at the moment of call. Never null, but can be empty.
    • getAllModuleStats

      public List<ModuleStatistic> getAllModuleStats()
      Gets all module statistics, regardless of target. Still, it is possible that object may contain statistics for one target of contain nothing at all (if results for targets are yet to be obtained).
      Returns:
      All modules' statistics being in cache at the moment of call. Never null, but can be empty.
    • getDebugTargets

      public Set<DebugTargetType> getDebugTargets()
      Gets set with all debug targets that have at least one result associated with them.
      Returns:
      Set with debug targets. Never null, but can be empty.
    • add

      public void add(ILineProfilingResult result)
      Adds statistics from passed line profiling result into cache. If statistics for method containing specified line is found, adds it to existing ModuleStatistic object.
      Parameters:
      result - Line result to be added. Cannot be null.
    • getTotalDurabilities

      public Map<DebugTargetType,Double> getTotalDurabilities()
      Gets total durabilities grouped by debug targets.
      Returns:
      Total durabilities of code execution on every debug target. Never null. If code was not executed on debug target, that its mapped value is null.