HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_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  * NAME: UT_PerfMonRecordOptions.h (UT Library, C++)
7  *
8  * COMMENTS:
9  *
10  * Performance monitor recording options.
11  */
12 
13 #ifndef __UT_PerfMonRecordOptions__
14 #define __UT_PerfMonRecordOptions__
15 
16 #include "UT_API.h"
17 
19 {
20 public:
22  bool cook_stats=true, bool solve_stats=true, bool node_draw_stats=true,
23  bool node_gpu_draw_stats=false, bool viewport_stats=true,
24  bool script_stats=true, bool render_stats=true,
25  bool thread_stats=false, bool frame_stats=true,
26  bool memory_stats=false, bool errors=true);
29 
30  bool recordCookStats() const;
31  bool recordSolveStats() const;
32  bool recordObjectDrawStats() const;
33  bool recordObjectGPUDrawStats() const;
34  bool recordViewportStats() const;
35  bool recordScriptStats() const;
36  bool recordRenderStats() const;
37  bool recordThreadStats() const;
38  bool recordFrameStats() const;
39  bool recordMemoryStats() const;
40  bool recordErrors() const;
41 
42  /// Convenience method which returns true if the options are
43  /// configured to record any time stats.
44  bool isRecordingTimedStats() const;
45 
46  void setRecordCookStats(bool record);
47  void setRecordSolveStats(bool record);
48  void setRecordObjectDrawStats(bool record);
49  void setRecordObjectGPUDrawStats(bool record);
50  void setRecordViewportStats(bool record);
51  void setRecordScriptStats(bool record);
52  void setRecordRenderStats(bool record);
53  void setRecordThreadStats(bool record);
54  void setRecordFrameStats(bool record);
55  void setRecordMemoryStats(bool record);
56  void setRecordErrors(bool record);
57 
58  UT_PerfMonRecordOptions &operator=(const UT_PerfMonRecordOptions &options);
59 
60 private:
61 
62  bool myRecordCookStats;
63  bool myRecordSolveStats;
64  bool myRecordObjectDrawStats;
65  bool myRecordObjectGPUDrawStats;
66  bool myRecordViewportStats;
67  bool myRecordScriptStats;
68  bool myRecordRenderStats;
69  bool myRecordThreadStats;
70  bool myRecordFrameStats;
71  bool myRecordMemoryStats;
72  bool myRecordErrors;
73 };
74 
75 #endif
76 
#define UT_API
Definition: UT_API.h:13