OpenMPI  0.1.1
Control.h
1 /*
2  This is part of the OTF library. Copyright by ZIH, TU Dresden 2005-2012.
3  Authors: Andreas Knuepfer, Holger Brunst, Ronny Brendel, Thomas Kriebitzsch
4 */
5 
6 #ifndef CONTROL_H
7 #define CONTROL_H
8 
9 #ifdef HAVE_CONFIG_H
10 #include "config.h"
11 #endif
12 
13 
14 #include <set>
15 
16 #include "OTF_inttypes.h"
17 #include "otf.h"
18 
19 #include "State.h"
20 
21 
22 struct Control {
23 
24 
25  State *state;
26 
27  /* time stamps where to generate a snapshots */
28  std::set<uint64_t> timestamps;
29 
30  uint64_t nextTime;
31 
32  OTF_Writer* writer;
33 
34  bool verbose;
35 
36  int usefunctiongroups;
37 
38 
39  Control( OTF_Writer* writer= NULL, bool _verbose= false,
40  bool _usefunctiongroups= false, bool _usefilegroups= false,
41  bool _doSnapshots= true, bool _doStatistics= true );
42  ~Control();
43 
44  /** add time stamp where to generate a snapshot */
45  void addTime( uint64_t time );
46 
47  uint64_t getLastTime();
48 
49  double checkTime( uint64_t time );
50 };
51 
52 
53 #endif /* CONTROL_H */
54 
Main include file for applications using OTF.
state of a whole trace
Definition: State.h:349
Definition: Control.h:22
void addTime(uint64_t time)
add time stamp where to generate a snapshot
Holds the data objects needed for global trace creation.
Definition: OTF_Writer.c:21
Deals with all data type related issues.