SST 15.0
Structural Simulation Toolkit
|
Profile tool that will count the number of times a handler is called. More...
#include <eventHandlerProfileTool.h>
Public Member Functions | |
uintptr_t | registerHandler (const AttachPointMetaData &mdata) override |
uintptr_t | registerLinkAttachTool (const AttachPointMetaData &mdata) override |
Function that will be called when an attach point is registered with the tool implementing the attach point. | |
void | beforeHandler (uintptr_t key, const SST::Event *event) override |
void | eventSent (uintptr_t key, Event *&ev) override |
Function that will be called when an event is sent on a link with registered attach points. | |
void | outputData (FILE *fp) override |
![]() | |
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 ¶ms) | |
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 |
![]() | |
std::string | getName () |
![]() | |
virtual void | serializeEventAttachPointKey (SST::Core::Serialization::serializer &ser, uintptr_t &key) |
Function that will be called to handle the key returned from registerLinkAttachTool, if the AttachPoint tool is serializable. | |
Additional Inherited Members | |
![]() | |
std::string | getKeyForHandler (const AttachPointMetaData &mdata) |
![]() | |
Profile_Level | profile_level_ |
bool | track_ports_ |
bool | profile_sends_ |
bool | profile_receives_ |
![]() | |
const std::string | name |
Profile tool that will count the number of times a handler is called.
|
overridevirtual |
Function that will be called when an event is sent on a link with registered attach points.
If ev is set to nullptr, then the event will not be delivered and the tool should delete the original event.
key | Opaque key returned from registerLinkAttachTool() |
Implements SST::Link::AttachPoint.
References eventSent().
Referenced by eventSent().
|
overridevirtual |
Implements SST::Profile::ProfileTool.
|
overridevirtual |
Function that will be called when an attach point is registered with the tool implementing the attach point.
The metadata passed in will be dependent on what type of tool this is attached to. The uintptr_t returned from this function will be passed into the eventSent() function.
mdata | Metadata to be passed into the tool |
Implements SST::Link::AttachPoint.
References registerLinkAttachTool().
Referenced by registerLinkAttachTool().