111 #ifndef OTF_RSTREAM_H
112 #define OTF_RSTREAM_H
170 uint32_t zbuffersizes;
523 uint64_t* current, uint64_t* maximum );
527 uint64_t* minimum, uint64_t* current, uint64_t* maximum );
531 uint64_t* minimum, uint64_t* current, uint64_t* maximum );
557 uint64_t* current, uint64_t* maximum );
583 uint64_t* minimum, uint64_t* current, uint64_t* maximum );
609 uint64_t* minimum, uint64_t* current, uint64_t* maximum );
636 uint64_t* current, uint64_t* maximum );
663 uint64_t* minimum, uint64_t* current, uint64_t* maximum );
689 uint64_t* minimum, uint64_t* current, uint64_t* maximum );
OTF_RBuffer * OTF_RStream_getStatsBuffer(OTF_RStream *rstream)
Returns the statistics buffer of the according reader stream.
Definition: OTF_RStream.c:408
uint64_t OTF_RStream_readSnapshots(OTF_RStream *rstream, OTF_HandlerArray *handlers)
Reads all snapshots from the stream.
Definition: OTF_RStream.c:782
OTF_RBuffer * OTF_RStream_getMarkerBuffer(OTF_RStream *rstream)
Returns the marker buffer of the according reader stream.
Definition: OTF_RStream.c:469
OTF_RBuffer * defBuffer
Definitions buffer.
Definition: OTF_RStream.h:144
uint32_t OTF_RStream_getBufferSizes(OTF_RStream *rstream)
Get the default buffer size for all buffers managed by this reader stream.
Definition: OTF_RStream.c:559
uint64_t OTF_RStream_readMarker(OTF_RStream *rstream, OTF_HandlerArray *handlers)
Reads all markers from the stream.
Definition: OTF_RStream.c:956
void OTF_RStream_setZBufferSizes(OTF_RStream *rstream, uint32_t size)
Set the default zbuffer size for all files managed by this reader stream.
Definition: OTF_RStream.c:566
uint32_t id
Unique id for the current stream.
Definition: OTF_RStream.h:140
char * namestub
name stub: all files will begin with this name
Definition: OTF_RStream.h:137
int OTF_RStream_closeMarkerBuffer(OTF_RStream *rstream)
Closes the stream marker buffer.
Definition: OTF_RStream.c:507
uint32_t OTF_RStream_getZBufferSizes(OTF_RStream *rstream)
Get the default zbuffer size for all files managed by this reader stream.
Definition: OTF_RStream.c:599
int OTF_RStream_closeEventBuffer(OTF_RStream *rstream)
Closes the stream event buffer.
Definition: OTF_RStream.c:326
uint8_t OTF_RStream_snapshotTimeProgress(OTF_RStream *rstream, uint64_t *minimum, uint64_t *current, uint64_t *maximum)
Delivers a progress report for reading snapshots.
Definition: OTF_RStream.c:1060
uint64_t OTF_RStream_readEvents(OTF_RStream *rstream, OTF_HandlerArray *handlers)
Reads all events from the stream and calls the appropriated handler sorted by time.
Definition: OTF_RStream.c:696
int OTF_RStream_closeStatsBuffer(OTF_RStream *rstream)
Closes the stream statistics buffer.
Definition: OTF_RStream.c:447
void OTF_RStream_setRecordLimit(OTF_RStream *rstream, uint64_t limit)
Sets the maximum number of records delivered by a single call to OTF_RStream_readXYZ().
Definition: OTF_RStream.c:610
uint8_t OTF_RStream_snapshotProgress(OTF_RStream *rstream, uint64_t *minimum, uint64_t *current, uint64_t *maximum)
depricated.
Definition: OTF_RStream.c:1025
OTF_RBuffer * statsBuffer
Statistics buffer.
Definition: OTF_RStream.h:160
uint8_t OTF_RStream_eventTimeProgress(OTF_RStream *rstream, uint64_t *minimum, uint64_t *current, uint64_t *maximum)
Delivers a progress report for reading events.
Definition: OTF_RStream.c:1041
Definition: OTF_RBuffer.h:40
int OTF_RStream_closeSnapsBuffer(OTF_RStream *rstream)
Closes the stream snapshots buffer.
Definition: OTF_RStream.c:386
Object structure which holds OTF record handlers.
Definition: OTF_HandlerArray.h:52
OTF_RBuffer * OTF_RStream_getSnapsBuffer(OTF_RStream *rstream)
Returns the snapshots buffer of the according reader stream.
Definition: OTF_RStream.c:348
int OTF_RStream_close(OTF_RStream *rstream)
Close an OTF_RStream instance and all its related files.
Definition: OTF_RStream.c:180
OTF_FileManager * manager
file handle manager
Definition: OTF_RStream.h:174
uint32_t buffersizes
Default size of buffers managed by this RStream.
Definition: OTF_RStream.h:166
uint8_t OTF_RStream_statisticBytesProgress(OTF_RStream *rstream, uint64_t *minimum, uint64_t *current, uint64_t *maximum)
Delivers a progress report for reading statistics.
Definition: OTF_RStream.c:1130
OTF_RBuffer * OTF_RStream_getDefBuffer(OTF_RStream *rstream)
Returns the definition buffer of the according reader stream.
Definition: OTF_RStream.c:203
uint64_t recordLimit
maximum number of records delivered by a single call to OTF_Reader_readXYZ() defaults to OTF_READ_MAX...
Definition: OTF_RStream.h:178
uint8_t OTF_RStream_eventProgress(OTF_RStream *rstream, uint64_t *minimum, uint64_t *current, uint64_t *maximum)
depricated.
Definition: OTF_RStream.c:1017
uint8_t OTF_RStream_statisticProgress(OTF_RStream *rstream, uint64_t *minimum, uint64_t *current, uint64_t *maximum)
depricated.
Definition: OTF_RStream.c:1033
OTF_RBuffer * eventBuffer
Event buffer.
Definition: OTF_RStream.h:148
uint64_t OTF_RStream_readDefinitions(OTF_RStream *rstream, OTF_HandlerArray *handlers)
Reads all definitions from the stream.
Definition: OTF_RStream.c:635
OTF_RBuffer * markerBuffer
Marker buffer.
Definition: OTF_RStream.h:163
Definition: OTF_RStream.h:133
int OTF_RStream_closeDefBuffer(OTF_RStream *rstream)
Closes the stream definition buffer.
Definition: OTF_RStream.c:259
uint8_t OTF_RStream_snapshotBytesProgress(OTF_RStream *rstream, uint64_t *minimum, uint64_t *current, uint64_t *maximum)
Delivers a progress report for reading snapshots.
Definition: OTF_RStream.c:1114
uint64_t OTF_RStream_getRecordLimit(OTF_RStream *rstream)
Returns the current record limit.
Definition: OTF_RStream.c:627
OTF_RBuffer * OTF_RStream_setDefBuffer(OTF_RStream *rstream, OTF_RBuffer *rbuffer)
Forces the given definition buffer to the according reader stream.
Definition: OTF_RStream.c:241
OTF_RBuffer * OTF_RStream_getEventBuffer(OTF_RStream *rstream)
Returns the event buffer of the according reader stream.
Definition: OTF_RStream.c:282
uint8_t OTF_RStream_statisticTimeProgress(OTF_RStream *rstream, uint64_t *minimum, uint64_t *current, uint64_t *maximum)
Delivers a progress report for reading statistics.
Definition: OTF_RStream.c:1079
OTF_RBuffer * snapsBuffer
Snaps (snapshots) buffer.
Definition: OTF_RStream.h:154
file handles management structure
Definition: OTF_FileManager.c:32
Provides read access to OTF traces which consist of multiple streams.
void OTF_RStream_setBufferSizes(OTF_RStream *rstream, uint32_t size)
Set the default buffer size for all buffers managed by this reader stream.
Definition: OTF_RStream.c:530
Handles file naming issues.
Deals with all data type related issues.
uint64_t OTF_RStream_readStatistics(OTF_RStream *rstream, OTF_HandlerArray *handlers)
Reads all statistics from the stream.
Definition: OTF_RStream.c:868
OTF_RStream * OTF_RStream_open(const char *nameStub, uint32_t id, OTF_FileManager *manager)
Create a new OTF_RStream instance.
Definition: OTF_RStream.c:142
Provides read access to trace buffers.
uint8_t OTF_RStream_eventBytesProgress(OTF_RStream *rstream, uint64_t *minimum, uint64_t *current, uint64_t *maximum)
Delivers a progress report for reading events.
Definition: OTF_RStream.c:1098