Class MethodStatisticsResult
java.lang.Object
com._1c.g5.v8.dt.internal.profiling.ui.view.methodlist.MethodStatisticsResult
Contains
ModuleStatistic
objects with methods and their performance statistics.-
Constructor Summary
ConstructorsConstructorDescriptionMethodStatisticsResult
(IProfilingResult results) Creates new method statistics result using passed profiling result. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ILineProfilingResult result) Adds statistics from passed line profiling result into cache.Gets all method statistics, regardless of module or target.Gets all module statistics, regardless of target.Gets set with all debug targets that have at least one result associated with them.getResults
(String moduleName) Gets module statistics.Gets total durabilities grouped by debug targets.
-
Constructor Details
-
MethodStatisticsResult
Creates new method statistics result using passed profiling result.- Parameters:
results
- Profiling result to be used. Cannot benull
.
-
-
Method Details
-
getResults
Gets module statistics.- Parameters:
moduleName
- The name of module to get results for. Cannot benull
.- Returns:
ModuleStatistic
s for specified module. Can benull
if there are no results for module with specified name.
-
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
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
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
Adds statistics from passed line profiling result into cache. If statistics for method containing specified line is found, adds it to existingModuleStatistic
object.- Parameters:
result
- Line result to be added. Cannot benull
.
-
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 isnull
.
-