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

Trace representing the whole trace loaded from trace files. More...

#include <Filetrace.hpp>

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

Public Member Functions

 FileTrace (std::vector< Slot * > &slotss, std::vector< Communication * > &communications, std::vector< CollectiveCommunicationEvent * > &collectiveCommunications, otf2::chrono::duration runtime)
 
std::map< otf2::definition::location_group *, Range< Slot * >, LocationGroupCmpgetSlots () const override
 Returns a map of slots of the current trace. More...
 
Range< Communication * > getCommunications () override
 Returns communication objects of the current trace. More...
 
Range< CollectiveCommunicationEvent * > getCollectiveCommunications () override
 Returns collective communication events of the current trace. More...
 
- Public Member Functions inherited from SubTrace
std::map< otf2::definition::location_group *, Range< Slot * >, LocationGroupCmpgetSlots () const override
 Returns a map of slots of the current trace. More...
 
otf2::chrono::duration getRuntime () const override
 Returns the runtime of the current trace. More...
 
Tracesubtrace (otf2::chrono::duration from, otf2::chrono::duration to) override
 Creates a subtrace of the current trace. More...
 
Range< Communication * > getCommunications () override
 Returns communication objects of the current trace. More...
 
Range< CollectiveCommunicationEvent * > getCollectiveCommunications () override
 Returns communication objects of the current trace. More...
 
otf2::chrono::duration getStartTime () const override
 Returns the start time of the current object. More...
 
types::TraceTime getEndTime () const override
 Returns the end time of the current object. More...
 
types::TraceTime getDuration () const override
 Returns the duration of the current object. More...
 
 SubTrace ()
 
 SubTrace (std::map< otf2::definition::location_group *, Range< Slot * >, LocationGroupCmp > &slots, const Range< Communication * > &communications, const Range< CollectiveCommunicationEvent * > &collectiveCommunications, const otf2::chrono::duration &runtime, const otf2::chrono::duration &startTime)
 
virtual std::map< otf2::definition::location_group *, Range< Slot * >, LocationGroupCmpgetSlots () const =0
 Returns a map of slots of the current trace. More...
 
virtual Range< Communication * > getCommunications ()=0
 Returns communication objects of the current trace. More...
 
virtual Range< CollectiveCommunicationEvent * > getCollectiveCommunications ()=0
 Returns collective communication events of the current trace. More...
 
virtual otf2::chrono::duration getRuntime () const =0
 Returns the runtime of the current trace. More...
 
virtual Tracesubtrace (otf2::chrono::duration from, otf2::chrono::duration to)=0
 Creates a subtrace of the current trace. More...
 
virtual types::TraceTime getStartTime () const =0
 Returns the start time of the current object. More...
 
virtual types::TraceTime getEndTime () const =0
 Returns the end time of the current object. More...
 
virtual types::TraceTime getDuration () const
 Returns the duration of the current object. More...
 

Additional Inherited Members

- Protected Attributes inherited from SubTrace
std::map< otf2::definition::location_group *, Range< Slot * >, LocationGroupCmpslots_
 
Range< Communication * > communications_
 
Range< CollectiveCommunicationEvent * > collectiveCommunications_
 
otf2::chrono::duration runtime_ {}
 
otf2::chrono::duration startTime_ {}
 

Detailed Description

Trace representing the whole trace loaded from trace files.

Definition at line 27 of file Filetrace.hpp.

Constructor & Destructor Documentation

◆ FileTrace()

FileTrace::FileTrace ( std::vector< Slot * > &  slotss,
std::vector< Communication * > &  communications,
std::vector< CollectiveCommunicationEvent * > &  collectiveCommunications,
otf2::chrono::duration  runtime 
)

Creates a new instance

Parameters
slotssvector of all slots from the trace file
communicationsvector of communications from the trace file
collectiveCommunicationsvector of collective communications from the trace file
runtimetotal runtime of the trace

Definition at line 22 of file Filetrace.cpp.

◆ ~FileTrace()

FileTrace::~FileTrace ( )
virtual

Definition at line 61 of file Filetrace.cpp.

Member Function Documentation

◆ getCollectiveCommunications()

Range< CollectiveCommunicationEvent * > FileTrace::getCollectiveCommunications ( )
overridevirtual

Returns collective communication events of the current trace.

This pure virtual function returns collective communication events of the current trace. The function has to be implemented in the derived classes.

Returns
collective communication events of the current trace.

Implements Trace.

Definition at line 57 of file Filetrace.cpp.

◆ getCommunications()

Range< Communication * > FileTrace::getCommunications ( )
overridevirtual

Returns communication objects of the current trace.

This pure virtual function returns communication objects of the current trace. The function has to be implemented in the derived classes.

Returns
communication objects of the current trace.

Implements Trace.

Definition at line 53 of file Filetrace.cpp.

◆ getSlots()

std::map< otf2::definition::location_group *, Range< Slot * >, LocationGroupCmp > FileTrace::getSlots ( ) const
overridevirtual

Returns a map of slots of the current trace.

This pure virtual function returns a map of slots of the current trace. The function has to be implemented in the derived classes.

Returns
A map of slots of the current trace.

Implements Trace.

Definition at line 49 of file Filetrace.cpp.


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