Skip to main content


bool isStatisticShared(const std::string& statName, bool include_me = false);

Availability: Component, SubComponent, ComponentExtension

Determine whether the named statistic is shared with our parent. Returns false if the caller is a Component and include_me is false.


  • statName (string) Name of the statistic
  • include_me (bool) Whether to count the calling component as a sharer
  • returns (bool) Whether statistic is shared


bool shared = isStatisticShared("num_events_received");
#include <sst/core/component.h> // or
#include <sst/core/subcomponent.h> // or
#include <sst/core/componentExtension.h>