HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_PerfMonRecordOptions.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * COMMENTS:
7  */
8 
9 #ifndef __HOM_PerfMonRecordOptions_h__
10 #define __HOM_PerfMonRecordOptions_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Module.h"
16 #include <string>
17 
18 SWIGOUT(%feature("notabstract") HOM_PerfMonRecordOptions;)
19 SWIGOUT(%rename(PerfMonRecordOptions) HOM_PerfMonRecordOptions;)
20 
22 {
23 public:
24 #ifdef SWIG
25 %extend {
27  HOM_PerfMonRecordOptions(
28  bool cook_stats=true,
29  bool pdg_cook_stats=true,
30  bool solve_stats=true,
31  bool draw_stats=true,
32  bool gpu_draw_stats=false,
33  bool viewport_stats=true,
34  bool script_stats=true,
35  bool render_stats=true,
36  bool thread_stats=false,
37  bool frame_stats=true,
38  bool memory_stats=false,
39  bool errors=true,
40  bool pane_stats=true)
41  {
43  cook_stats, pdg_cook_stats, solve_stats, draw_stats,
44  gpu_draw_stats, viewport_stats, script_stats, render_stats,
45  thread_stats, frame_stats, memory_stats, errors, pane_stats);
46  }
47 };
48 #else
50  { HOM_CONSTRUCT_OBJECT(this) }
52  {
53  myRecordCookStats = options.myRecordCookStats;
54  myRecordPDGCookStats = options.myRecordPDGCookStats;
55  myRecordSolveStats = options.myRecordSolveStats;
56  myRecordDrawStats = options.myRecordDrawStats;
57  myRecordGPUDrawStats = options.myRecordGPUDrawStats;
58  myRecordViewportStats = options.myRecordViewportStats;
59  myRecordPaneStats = options.myRecordPaneStats;
60  myRecordScriptStats = options.myRecordScriptStats;
61  myRecordRenderStats = options.myRecordRenderStats;
62  myRecordThreadStats = options.myRecordThreadStats;
63  myRecordFrameStats = options.myRecordFrameStats;
64  myRecordMemoryStats = options.myRecordMemoryStats;
65  myRecordErrors = options.myRecordErrors;
66 
67  { HOM_CONSTRUCT_OBJECT(this) }
68  }
69 #endif
70 
72  { HOM_DESTRUCT_OBJECT(this) }
73 
74  virtual std::string __repr__();
75 
76  bool recordCookStats();
77  bool recordPDGCookStats();
78  bool recordSolveStats();
79  bool recordDrawStats();
80  bool recordGPUDrawStats();
81  bool recordViewportStats();
82  bool recordPaneStats();
83  bool recordScriptStats();
84  bool recordRenderStats();
85  bool recordThreadStats();
86  bool recordFrameStats();
87  bool recordMemoryStats();
88  bool recordErrors();
89 
90  void setRecordCookStats(bool record);
91  void setRecordPDGCookStats(bool record);
92  void setRecordSolveStats(bool record);
93  void setRecordDrawStats(bool record);
94  void setRecordGPUDrawStats(bool record);
95  void setRecordViewportStats(bool record);
96  void setRecordPaneStats(bool record);
97  void setRecordScriptStats(bool record);
98  void setRecordRenderStats(bool record);
99  void setRecordThreadStats(bool record);
100  void setRecordFrameStats(bool record);
101  void setRecordMemoryStats(bool record);
102  void setRecordErrors(bool record);
103 
104 private:
105 
106  bool myRecordCookStats;
107  bool myRecordPDGCookStats;
108  bool myRecordSolveStats;
109  bool myRecordDrawStats;
110  bool myRecordGPUDrawStats;
111  bool myRecordViewportStats;
112  bool myRecordPaneStats;
113  bool myRecordScriptStats;
114  bool myRecordRenderStats;
115  bool myRecordThreadStats;
116  bool myRecordFrameStats;
117  bool myRecordMemoryStats;
118  bool myRecordErrors;
119 };
120 
121 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1238
OIIO_API bool rename(string_view from, string_view to, std::string &err)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:353
#define HOM_API
Definition: HOM_API.h:13
HOM_PerfMonRecordOptions(HOM_PerfMonRecordOptions &options)
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1237
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
virtual HOM_PerfMonRecordOptions * newPerfMonRecordOptions(bool cook_stats, bool pdg_cook_stats, bool solve_stats, bool draw_stats, bool gpu_draw_stats, bool viewport_stats, bool script_stats, bool render_stats, bool thread_stats, bool frame_stats, bool memory_stats, bool errors, bool pane_stats)=0
HOM_API HOM_Module & HOM()