Motiv
Marvelous OTF2 Traces Interactive Visualizer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ReaderCallbacks Class Reference

Class implementing handlers for the otf readers events. More...

#include <ReaderCallbacks.hpp>

Inheritance diagram for ReaderCallbacks:
Inheritance graph
[legend]
Collaboration diagram for ReaderCallbacks:
Collaboration graph
[legend]

Public Member Functions

 ReaderCallbacks (otf2::reader::reader &rdr)
 Creates a new instance of the ReaderCallbacks class. More...
 
void definition (const otf2::definition::location &loc) override
 
void event (const otf2::definition::location &location, const otf2::event::program_begin &event) override
 
void event (const otf2::definition::location &location, const otf2::event::program_end &event) override
 
void event (const otf2::definition::location &location, const otf2::event::enter &event) override
 
void event (const otf2::definition::location &location, const otf2::event::leave &event) override
 
void event (const otf2::definition::location &location, const otf2::event::mpi_send &send) override
 
void event (const otf2::definition::location &location, const otf2::event::mpi_receive &receive) override
 
void event (const otf2::definition::location &location, const otf2::event::mpi_isend_request &request) override
 
void event (const otf2::definition::location &location, const otf2::event::mpi_isend_complete &complete) override
 
void event (const otf2::definition::location &location, const otf2::event::mpi_ireceive_request &request) override
 
void event (const otf2::definition::location &location, const otf2::event::mpi_ireceive_complete &complete) override
 
void event (const otf2::definition::location &location, const otf2::event::mpi_request_test &test) override
 
void event (const otf2::definition::location &location, const otf2::event::mpi_request_cancelled &cancelled) override
 
void event (const otf2::definition::location &location, const otf2::event::mpi_collective_begin &begin) override
 
void event (const otf2::definition::location &location, const otf2::event::mpi_collective_end &anEnd) override
 
void events_done (const otf2::reader::reader &) override
 
std::vector< Communication * > getCommunications ()
 Returns all read point to point communications. More...
 
std::vector< CollectiveCommunicationEvent * > getCollectiveCommunications ()
 Returns all read collective communications. More...
 
std::vector< Slot * > getSlots ()
 Returns all read slots. More...
 
otf2::chrono::duration duration () const
 

Detailed Description

Class implementing handlers for the otf readers events.

This class contains all the logic for parsing OTF2 traces into our custom data structures; including linking start and end events of single operations to form a communication

Definition at line 49 of file ReaderCallbacks.hpp.

Constructor & Destructor Documentation

◆ ReaderCallbacks()

ReaderCallbacks::ReaderCallbacks ( otf2::reader::reader &  rdr)
explicit

Creates a new instance of the ReaderCallbacks class.

Parameters
rdrInitialized reader

Definition at line 30 of file ReaderCallbacks.cpp.

Member Function Documentation

◆ definition()

void ReaderCallbacks::definition ( const otf2::definition::location &  loc)
override

Definition at line 49 of file ReaderCallbacks.cpp.

◆ duration()

otf2::chrono::duration ReaderCallbacks::duration ( ) const

Duration of the trace

Returns
Duration of the trace

Definition at line 45 of file ReaderCallbacks.cpp.

◆ event() [1/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::enter &  event 
)
override

Definition at line 62 of file ReaderCallbacks.cpp.

◆ event() [2/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::leave &  event 
)
override

Definition at line 82 of file ReaderCallbacks.cpp.

◆ event() [3/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::mpi_collective_begin &  begin 
)
override

Definition at line 226 of file ReaderCallbacks.cpp.

◆ event() [4/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::mpi_collective_end &  anEnd 
)
override

Definition at line 237 of file ReaderCallbacks.cpp.

◆ event() [5/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::mpi_ireceive_complete &  complete 
)
override

Definition at line 180 of file ReaderCallbacks.cpp.

◆ event() [6/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::mpi_ireceive_request &  request 
)
override

Definition at line 201 of file ReaderCallbacks.cpp.

◆ event() [7/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::mpi_isend_complete &  complete 
)
override

Definition at line 159 of file ReaderCallbacks.cpp.

◆ event() [8/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::mpi_isend_request &  request 
)
override

Definition at line 144 of file ReaderCallbacks.cpp.

◆ event() [9/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::mpi_receive &  receive 
)
override

Definition at line 136 of file ReaderCallbacks.cpp.

◆ event() [10/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::mpi_request_cancelled &  cancelled 
)
override

Definition at line 220 of file ReaderCallbacks.cpp.

◆ event() [11/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::mpi_request_test &  test 
)
override

Definition at line 216 of file ReaderCallbacks.cpp.

◆ event() [12/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::mpi_send &  send 
)
override

Definition at line 128 of file ReaderCallbacks.cpp.

◆ event() [13/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::program_begin &  event 
)
override

Definition at line 53 of file ReaderCallbacks.cpp.

◆ event() [14/14]

void ReaderCallbacks::event ( const otf2::definition::location &  location,
const otf2::event::program_end &  event 
)
override

Definition at line 57 of file ReaderCallbacks.cpp.

◆ events_done()

void ReaderCallbacks::events_done ( const otf2::reader::reader &  )
override

Definition at line 269 of file ReaderCallbacks.cpp.

◆ getCollectiveCommunications()

std::vector< CollectiveCommunicationEvent * > ReaderCallbacks::getCollectiveCommunications ( )

Returns all read collective communications.

The vector will only contain elements read by the reader when calling All read collective communications

Definition at line 308 of file ReaderCallbacks.cpp.

◆ getCommunications()

std::vector< Communication * > ReaderCallbacks::getCommunications ( )

Returns all read point to point communications.

The vector will only contain elements read by the reader when calling All read point to point communications

Definition at line 304 of file ReaderCallbacks.cpp.

◆ getSlots()

std::vector< Slot * > ReaderCallbacks::getSlots ( )

Returns all read slots.

The vector will only contain elements read by the reader when calling All read slots

Definition at line 41 of file ReaderCallbacks.cpp.


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