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

Trace facilitating a subtrace optimized for rendering. More...

#include <UITrace.hpp>

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

Public Member Functions

Tracesubtrace (otf2::chrono::duration from, otf2::chrono::duration to) override
 Creates a subtrace 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...
 

Static Public Member Functions

static UITraceforResolution (Trace *trace, otf2::chrono::duration timePerPixel)
 
static UITraceforResolution (Trace *trace, int width)
 

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 facilitating a subtrace optimized for rendering.

Slots that would be rendered smaller than MIN_SLOT_SIZE_PX pixels are grouped together to a single slot. Instead of all slots that fit inside MIN_SLOT_SIZE_PX the longest slot with the most important kind is shown.

Definition at line 48 of file UITrace.hpp.

Member Function Documentation

◆ forResolution() [1/2]

UITrace * UITrace::forResolution ( Trace trace,
int  width 
)
static

Wraps a trace into a UITrace optimized for rendering performance.

See also
UITrace
Parameters
traceoriginal trace to be optimized
widththe width in px for which the trace should be optimized
Returns
the UITrace wrapping the original trace

Definition at line 39 of file UITrace.cpp.

◆ forResolution() [2/2]

UITrace * UITrace::forResolution ( Trace trace,
otf2::chrono::duration  timePerPixel 
)
static

Wraps a trace into a UITrace optimized for rendering performance.

See also
UITrace
Parameters
traceoriginal trace to be optimized
timePerPixelduration that fits into one pixel
Returns
the UITrace wrapping the original trace

Definition at line 43 of file UITrace.cpp.

◆ subtrace()

Trace * UITrace::subtrace ( otf2::chrono::duration  from,
otf2::chrono::duration  to 
)
overridevirtual

Creates a subtrace of the current trace.

This pure virtual function creates a subtrace of the current trace by returning a new Trace object that only contains elements within the given time range. The function has to be implemented in the derived classes.

Parameters
fromTime the the subtrace should start.
toTime the subtrace should end.
Returns
A new Trace object that only contains elements within the given time range.

Reimplemented from SubTrace.

Definition at line 214 of file UITrace.cpp.


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