MUQ  0.4.3
muq::Utilities::OTF2Tracer Class Reference

Tracer implementation writing to OTF2 via libotf2 The result can be viewed by several programs, one example is "vite" developed at INRIA. More...

#include <OTF2Tracer.h>

Inheritance diagram for muq::Utilities::OTF2Tracer:

Detailed Description

Tracer implementation writing to OTF2 via libotf2 The result can be viewed by several programs, one example is "vite" developed at INRIA.

Definition at line 92 of file OTF2Tracer.h.

Public Member Functions

 OTF2Tracer (std::string archive_path, std::string archive_name)
 
void enterRegion (TracerRegions region) override
 Call this to mark that a certain tracer region has been entered. More...
 
void leaveRegion (TracerRegions region) override
 Call this to mark that a certain tracer region has been left. More...
 
void write () override
 

Constructor & Destructor Documentation

◆ OTF2Tracer()

Member Function Documentation

◆ ensureRegionName()

void muq::Utilities::OTF2Tracer::ensureRegionName ( TracerRegions  region)
inlineprivate

Makes sure a region name has been defined, otherwise generates a default region name.

Definition at line 153 of file OTF2Tracer.h.

References regionNames, and nlohmann::to_string().

Referenced by enterRegion(), and leaveRegion().

◆ enterRegion()

void muq::Utilities::OTF2Tracer::enterRegion ( TracerRegions  region)
inlineoverridevirtual

Call this to mark that a certain tracer region has been entered.

Implements muq::Utilities::OTF2TracerBase.

Definition at line 130 of file OTF2Tracer.h.

References ensureRegionName(), evt_writer, and muq::Utilities::get_time().

◆ leaveRegion()

void muq::Utilities::OTF2Tracer::leaveRegion ( TracerRegions  region)
inlineoverridevirtual

Call this to mark that a certain tracer region has been left.

Implements muq::Utilities::OTF2TracerBase.

Definition at line 141 of file OTF2Tracer.h.

References ensureRegionName(), evt_writer, and muq::Utilities::get_time().

◆ setRegionName()

void muq::Utilities::OTF2Tracer::setRegionName ( TracerRegions  region,
std::string  name 
)
inlineprivate

Definition at line 158 of file OTF2Tracer.h.

References regionNames.

Referenced by OTF2Tracer().

◆ write()

void muq::Utilities::OTF2Tracer::write ( )
inlineoverridevirtual

Member Data Documentation

◆ archive

OTF2_Archive* muq::Utilities::OTF2Tracer::archive
private

Definition at line 280 of file OTF2Tracer.h.

Referenced by OTF2Tracer(), and write().

◆ epoch_start

uint64_t muq::Utilities::OTF2Tracer::epoch_start
private

Definition at line 278 of file OTF2Tracer.h.

Referenced by OTF2Tracer(), and write().

◆ evt_writer

OTF2_EvtWriter* muq::Utilities::OTF2Tracer::evt_writer
private

Definition at line 281 of file OTF2Tracer.h.

Referenced by enterRegion(), leaveRegion(), OTF2Tracer(), and write().

◆ rank

int muq::Utilities::OTF2Tracer::rank
private

Definition at line 277 of file OTF2Tracer.h.

Referenced by OTF2Tracer(), and write().

◆ regionNames

std::map<int, std::string> muq::Utilities::OTF2Tracer::regionNames
private

Definition at line 283 of file OTF2Tracer.h.

Referenced by ensureRegionName(), setRegionName(), and write().

◆ size

int muq::Utilities::OTF2Tracer::size
private

Definition at line 276 of file OTF2Tracer.h.

Referenced by OTF2Tracer(), and write().


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