SST  15.1.0
StructuralSimulationToolkit
SST::Profile::EventHandlerProfileTool Class Reference
Inheritance diagram for SST::Profile::EventHandlerProfileTool:
SST::Profile::ProfileTool SST::SSTHandlerBase< returnT, argT >::AttachPoint SST::Link::AttachPoint SST::Profile::EventHandlerProfileToolTime< std::chrono::high_resolution_clock > SST::Profile::EventHandlerProfileToolTime< std::chrono::steady_clock > SST::Profile::EventHandlerProfileToolCount SST::Profile::EventHandlerProfileToolTime< T > SST::Profile::EventHandlerProfileToolTimeHighResolution SST::Profile::EventHandlerProfileToolTimeSteady

Public Member Functions

 SST_ELI_DOCUMENT_PARAMS ({ "level", "Level at which to track profile (global, type, component, subcomponent)", "type" }, { "track_ports", "Controls whether to track by individual ports", "false" }, { "profile_sends", "Controls whether sends are profiled (due to location of profiling point in the code, turning on send profiling will incur relatively high overhead)", "false" }, { "profile_receives", "Controls whether receives are profiled", "true" },) enum class Profile_Level
 
 EventHandlerProfileTool (const std::string &name, Params &params)
 
bool profileSends ()
 
bool profileReceives ()
 
void beforeHandler (uintptr_t UNUSED(key), const Event *UNUSED(event)) override
 
void afterHandler (uintptr_t UNUSED(key)) override
 
void eventSent (uintptr_t UNUSED(key), Event *&UNUSED(ev)) override
 
- Public Member Functions inherited from SST::Profile::ProfileTool
std::string getName ()
 
virtual void outputData (FILE *fp)=0
 
- Public Member Functions inherited from SST::SSTHandlerBase< returnT, argT >::AttachPoint
virtual uintptr_t registerHandler (const AttachPointMetaData &mdata)=0
 Function that will be called when a handler is registered with the tool implementing the attach point. More...
 
virtual void beforeHandler (uintptr_t key, std::conditional_t< std::is_pointer_v< argT >, const std::remove_pointer_t< argT > *, const argT &> arg)=0
 Function to be called before the handler is called. More...
 
virtual void afterHandler (uintptr_t key, std::conditional_t< std::is_pointer_v< returnT >, const std::remove_pointer_t< returnT > *, const returnT &> ret_value)=0
 Function to be called after the handler is called. More...
 
virtual void serializeHandlerAttachPointKey (SST::Core::Serialization::serializer &UNUSED(ser), uintptr_t &UNUSED(key))
 Function that will be called to handle the key returned from registerHandler, if the AttachPoint tool is serializable. More...
 

Protected Member Functions

std::string getKeyForHandler (const AttachPointMetaData &mdata)
 

Protected Attributes

Profile_Level profile_level_
 
bool track_ports_
 
bool profile_sends_
 
bool profile_receives_
 
- Protected Attributes inherited from SST::Profile::ProfileTool
const std::string name
 

The documentation for this class was generated from the following files: