Simple writing example
#include <stdlib.h>
get_time( void )
{
static uint64_t sequence;
return sequence++;
}
pre_flush( void* userData,
void* callerData,
bool final )
{
}
post_flush( void* userData,
{
return get_time();
}
{
.otf2_post_flush = post_flush
};
int
main( int argc,
char** argv )
{
"ArchiveName",
1024 * 1024 ,
4 * 1024 * 1024 ,
NULL,
get_time(),
0 );
NULL,
get_time(),
0 );
1 ,
0 ,
2 );
0 ,
3 ,
4 ,
5 ,
0 ,
0 ,
0 );
0 ,
6 ,
7 ,
0 ,
1 ,
0 );
0 ,
2 ,
2 ,
0 );
return EXIT_SUCCESS;
}