HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_PerformanceMonitor.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_PerformanceMonitor_h__
10 #define __HOM_PerformanceMonitor_h__
11 
12 #include "HOM_PaneTab.h"
13 #include "HOM_EnumValue.h"
14 
15 SWIGOUT(%rename(PerformanceMonitor) HOM_PerformanceMonitor;)
16 
18 {
19 public:
21  { HOM_CONSTRUCT_OBJECT(this) }
22  // Because the lowermost base classes initialize the virtual bases
23  // before any non-virtual bases, the correct thing to do here is
24  // explicitly call the constructor for HOM_PaneTab.
26  : HOM_PaneTab(pane)
27  { HOM_CONSTRUCT_OBJECT(this) }
28 
30  { HOM_DESTRUCT_OBJECT(this) }
31 
32  // Let swig know we're overriding __repr__ for this class so it doesn't
33  // provide its own __repr__.
34  SWIGOUT(virtual std::string __repr__() = 0;)
35 
36  virtual bool isLiveUpdatesEnabled() = 0;
37  virtual void enableLiveUpdates(bool on) = 0;
38 
39  virtual bool isRecording() = 0;
40  virtual void startRecording() = 0;
41  virtual void stopRecording() = 0;
42 
43  virtual bool isSamplingCookStats() = 0;
44  virtual bool isSamplingPDGCookStats() = 0;
45  virtual bool isSamplingErrors() = 0;
46  virtual bool isSamplingFrameStats() = 0;
47  virtual bool isSamplingMemoryStats() = 0;
48  virtual bool isSamplingObjectDrawStats() = 0;
49  virtual bool isSamplingObjectGPUDrawStats() = 0;
50  virtual bool isSamplingScriptStats() = 0;
51  virtual bool isSamplingSolveStats() = 0;
52  virtual bool isSamplingThreadStats() = 0;
53  virtual bool isSamplingViewportStats() = 0;
54  virtual void sampleCookStats(bool on) = 0;
55  virtual void samplePDGCookStats(bool on) = 0;
56  virtual void sampleErrors(bool on) = 0;
57  virtual void sampleFrameStats(bool on) = 0;
58  virtual void sampleMemoryStats(bool on) = 0;
59  virtual void sampleObjectDrawStats(bool on) = 0;
60  virtual void sampleObjectGPUDrawStats(bool on) = 0;
61  virtual void sampleScriptStats(bool on) = 0;
62  virtual void sampleSolveStats(bool on) = 0;
63  virtual void sampleThreadStats(bool on) = 0;
64  virtual void sampleViewportStats(bool on) = 0;
65 
66  virtual void showProfile(HOM_PerfMonProfile *profile) = 0;
67 
68  virtual HOM_EnumValue &objectView() = 0;
69  virtual void setObjectView(HOM_EnumValue &structure) = 0;
70 
71  virtual HOM_EnumValue &timeFormat() = 0;
72  virtual void setTimeFormat(HOM_EnumValue &format) = 0;
73 
74  virtual HOM_EnumValue &timeUnit() = 0;
75  virtual void setTimeUnit(HOM_EnumValue &unit) = 0;
76 };
77 
78 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:352
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
GLint GLint GLsizei GLint GLenum format
Definition: glcorearb.h:108
png_const_structrp png_const_inforp int * unit
Definition: png.h:2161
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_PerformanceMonitor(const HOM_PerformanceMonitor &pane)