Skip to main content

enableAllStatistics

Enables all statistics for the Component or SubComponent on which the call is made.

Syntax​

component.enableAllStatistics(stat_params_dict={}, apply_to_children=False)

Parameters​

  • stat_params_dict (type: dict) OPTIONAL. Python dictionary that specifies the statistic parameters. All statistics will get the same set of parameters.
  • apply_to_children (type: bool) OPTIONAL. If set to True, will recursively enable all statistics on all currently instanced SubComponent descendants. SubComponents created after this call will not have their statistics enabled.
  • returns none
note

This function only accepts positional arguments. Calling it with keyword arguments (e.g., apply_to_children=True) raises a TypeError.

Examples​

Example 1​

import sst

component0 = sst.Component("c0", "simpleElementExample.example1")
component0.enableAllStatistics()

Example 2​

import sst
component0 = sst.Component("c0", "simpleElementExample.example1")

# Generate a statistics report every 50ns in simulated time
statParams = { "rate" : "50ns" }

component0.enableAllStatistics(statParams)

Import​

import sst