2.3-trunk (revision 4766)
|
This lowest user-visible layer provides write routines to read and write thumbnail data. More...
Go to the source code of this file.
Typedefs | |
typedef struct OTF2_ThumbWriter_struct | OTF2_ThumbWriter |
Keeps all necessary information about the thumb writer. See OTF2_ThumbWriter_struct for detailed information. | |
typedef struct OTF2_ThumbReader_struct | OTF2_ThumbReader |
Keeps all necessary information about the event reader. See OTF2_ThumbReader_struct for detailed information. | |
Functions | |
OTF2_ErrorCode | OTF2_ThumbReader_GetHeader (OTF2_ThumbReader *reader, char **const name, char **const description, OTF2_ThumbnailType *type, uint32_t *numberOfSamples, uint32_t *numberOfMetrics, uint64_t **refsToDefs) |
Reads a thumbnail header. More... | |
OTF2_ErrorCode | OTF2_ThumbReader_ReadSample (OTF2_ThumbReader *reader, uint64_t *baseline, uint32_t numberOfMetrics, uint64_t *metricSamples) |
Reads a thumbnail sample. More... | |
OTF2_ErrorCode | OTF2_ThumbWriter_WriteSample (OTF2_ThumbWriter *writer, uint64_t baseline, uint32_t numberOfMetrics, const uint64_t *metricSamples) |
Writes a thumbnail sample. More... | |
This lowest user-visible layer provides write routines to read and write thumbnail data.
OTF2_ErrorCode OTF2_ThumbReader_GetHeader | ( | OTF2_ThumbReader * | reader, |
char **const | name, | ||
char **const | description, | ||
OTF2_ThumbnailType * | type, | ||
uint32_t * | numberOfSamples, | ||
uint32_t * | numberOfMetrics, | ||
uint64_t ** | refsToDefs | ||
) |
Reads a thumbnail header.
A thumbnail header contains some meta information for a thumbnail.
reader | Reader object. | |
[out] | name | Name of thumbnail. Allocated with malloc. |
[out] | description | Description of thumbnail. Allocated with malloc. |
[out] | type | Type of thumbnail. |
[out] | numberOfSamples | Number of samples. |
[out] | numberOfMetrics | Number of metrics. |
[out] | refsToDefs | The sorted set of references to definitions used in a thumbnail sample. Allocated with malloc. Contains numberOfMetrics entries |
OTF2_ErrorCode OTF2_ThumbReader_ReadSample | ( | OTF2_ThumbReader * | reader, |
uint64_t * | baseline, | ||
uint32_t | numberOfMetrics, | ||
uint64_t * | metricSamples | ||
) |
Reads a thumbnail sample.
reader | Reader object. | |
[out] | baseline | Baseline for this sample. If zero, the baseline is the sum of all metric values in this sample. |
numberOfMetrics | Number of metric sample values. | |
[out] | metricSamples | Metric sample values. |
OTF2_ErrorCode OTF2_ThumbWriter_WriteSample | ( | OTF2_ThumbWriter * | writer, |
uint64_t | baseline, | ||
uint32_t | numberOfMetrics, | ||
const uint64_t * | metricSamples | ||
) |
Writes a thumbnail sample.
writer | Writer object. |
baseline | Baseline for this sample. If zero, the baseline is the sum of all metric values in this sample. |
numberOfMetrics | Number of metric sample values. |
metricSamples | Metric sample values. |