Dali 3D User Interface Engine
stat-context-manager.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_ADAPTOR_STAT_CONTEXT_MANAGER_H__
2 #define __DALI_INTERNAL_ADAPTOR_STAT_CONTEXT_MANAGER_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 // EXTERNAL INCLUDES
23 
24 // INTERNAL INCLUDES
28 
29 
30 namespace Dali
31 {
32 
33 namespace Internal
34 {
35 
36 namespace Adaptor
37 {
38 
54 {
55 
56 public:
57 
63 
68 
76 
82 
87  void AddInternalMarker( const PerformanceMarker& marker );
88 
94  void AddCustomMarker( const PerformanceMarker& marker , PerformanceInterface::ContextId contextId );
95 
101  const char* const GetContextName( PerformanceInterface::ContextId contextId ) const;
102 
110 
111 
117  void EnableLogging( bool enable, PerformanceInterface::ContextId contextId );
118 
124  void SetLoggingLevel( unsigned int statisticsLogOptions, unsigned int logFrequency);
125 
131  void SetLoggingFrequency( unsigned int logFrequency, PerformanceInterface::ContextId contextId );
132 
133  private:
134 
136 
143 
147 
149 
150  // Some defaults contexts
154 
155  unsigned int mStatisticsLogBitmask;
156  unsigned int mLogFrequency;
157 };
158 
159 
160 } // namespace Internal
161 
162 } // namespace Adaptor
163 
164 } // namespace Dali
165 
166 #endif // __DALI_INTERNAL_ADAPTOR_STAT_CONTEXT_MANAGER_H__
167 
Dali Docs Home
Read more about Dali