enableStatistic
Enables a single statistic for the PortModule on which the call is made. To enable multiple statistics at once, use enableStatistics().
Syntax
portmodule.enableStatistic(stat, stat_params_dict)
Parameters
- stat (type: string) Name of statistic to enable.
- stat_params_dict (type: dict) Python dictionary that specifies the statistic parameters.
- returns none
Example
import sst
component = sst.Component( ... )
portmodule = component.addPortModule("port0", "sst.portmodules.random_drop" )
component.enableStatistic("dropped")
Import
import sst