3.1-rc3 (revision d9ca08bb)
OTF2_Thumbnail.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Score-P software (http://www.score-p.org)
3  *
4  * Copyright (c) 2013, 2023,
5  * Technische Universitaet Dresden, Germany
6  *
7  * This software may be modified and distributed under the terms of
8  * a BSD-style license. See the COPYING file in the package base
9  * directory for details.
10  */
11 
12 
13 #ifndef OTF2_THUMBNAIL_H
14 #define OTF2_THUMBNAIL_H
15 
16 
25 #include <stdint.h>
26 
27 
29 
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif /* __cplusplus */
34 
35 
38 typedef struct OTF2_ThumbWriter_struct OTF2_ThumbWriter;
39 
40 
43 typedef struct OTF2_ThumbReader_struct OTF2_ThumbReader;
44 
45 
67  char** const name,
68  char** const description,
69  OTF2_ThumbnailType* type,
70  uint32_t* numberOfSamples,
71  uint32_t* numberOfMetrics,
72  uint64_t** refsToDefs );
73 
74 
91  uint64_t* baseline,
92  uint32_t numberOfMetrics,
93  uint64_t* metricSamples );
94 
95 
111  uint64_t baseline,
112  uint32_t numberOfMetrics,
113  const uint64_t* metricSamples );
114 
115 
116 #ifdef __cplusplus
117 }
118 #endif /* __cplusplus */
119 
120 
121 #endif /* !OTF2_THUMBNAIL_H */
OTF2_ErrorCode OTF2_ThumbReader_ReadSample(OTF2_ThumbReader *reader, uint64_t *baseline, uint32_t numberOfMetrics, uint64_t *metricSamples)
Reads a thumbnail sample.
struct OTF2_ThumbReader_struct OTF2_ThumbReader
Keeps all necessary information about the event reader. See OTF2_ThumbReader_struct for detailed info...
Definition: OTF2_Thumbnail.h:43
OTF2_ErrorCode
Definition: OTF2_ErrorCodes.h:53
This header file provides general definitions which should be accessible in all internal and external...
uint8_t OTF2_ThumbnailType
Wrapper for enum OTF2_ThumbnailType_enum.
Definition: OTF2_GeneralDefinitions.h:1048
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.
OTF2_ErrorCode OTF2_ThumbWriter_WriteSample(OTF2_ThumbWriter *writer, uint64_t baseline, uint32_t numberOfMetrics, const uint64_t *metricSamples)
Writes a thumbnail sample.
struct OTF2_ThumbWriter_struct OTF2_ThumbWriter
Keeps all necessary information about the thumb writer. See OTF2_ThumbWriter_struct for detailed info...
Definition: OTF2_Thumbnail.h:38