Dali 3D User Interface Engine
performance-interface.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_BASE_PERFORMANCE_INTERFACE_H__
2 #define __DALI_INTERNAL_BASE_PERFORMANCE_INTERFACE_H__
3 
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20 
21 namespace Dali
22 {
23 
24 namespace Internal
25 {
26 
27 namespace Adaptor
28 {
29 
36 {
37 public:
38 
39  typedef unsigned short ContextId;
40 
51  {
52  DISABLED = 0,
53  LOG_EVERYTHING = 1 << 0,
54  LOG_UPDATE_RENDER = 1 << 1,
55  LOG_EVENT_PROCESS = 1 << 2,
56  LOG_CUSTOM_MARKERS = 1 << 3,
57  };
58 
74  {
76  OUTPUT_DALI_LOG = 1 << 0,
79  OUTPUT_NETWORK = 1 << 3,
80  };
81 
88  {
89  VSYNC = 0,
98  PAUSED ,
99  RESUME ,
100  START ,
102  };
103 
108 
112  virtual ~PerformanceInterface() {};
113 
120  virtual ContextId AddContext( const char* name ) = 0;
121 
127  virtual void RemoveContext( ContextId contextId ) = 0;
128 
135  virtual void AddMarker( MarkerType markerType ) = 0;
136 
143  virtual void AddMarker( MarkerType markerType, ContextId contextId ) = 0;
144 
151  virtual void SetLogging( unsigned int statisticsLogOptions, unsigned int timeStampOutput, unsigned int logFrequency) = 0;
152 
158  virtual void SetLoggingFrequency( unsigned int logFrequency, ContextId contextId ) = 0;
159 
166  virtual void EnableLogging( bool enable, ContextId contextId ) = 0;
167 
168 private:
169 
170  // Undefined copy constructor.
172 
173  // Undefined assignment operator.
175 
176 };
177 
178 } // namespace Internal
179 
180 } // namespace Adaptor
181 
182 } // namespace Dali
183 
184 #endif
Dali Docs Home
Read more about Dali