Dali 3D User Interface Engine
performance-server.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_ADAPTOR_PERFORMANCE_SERVER_H__
2 #define __DALI_INTERNAL_ADAPTOR_PERFORMANCE_SERVER_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 INCLDUES
24 
25 // INTERNAL INCLUDES
31 
32 namespace Dali
33 {
34 
35 namespace Internal
36 {
37 
38 namespace Adaptor
39 {
40 
41 class EnvironmentOptions;
42 class StatContext;
49 {
50 public:
51 
58  const EnvironmentOptions& environmentOptions );
59 
63  virtual ~PerformanceServer();
64 
68  virtual ContextId AddContext( const char* name );
69 
73  virtual void RemoveContext( ContextId contextId );
74 
78  virtual void AddMarker( MarkerType markerType );
79 
83  virtual void AddMarker( MarkerType markerType, ContextId contextId );
84 
88  virtual void SetLogging( unsigned int statisticsLogOptions,
89  unsigned int timeStampOutput,
90  unsigned int logFrequency );
91 
95  virtual void SetLoggingFrequency( unsigned int logFrequency, ContextId contextId );
96 
100  virtual void EnableLogging( bool enable, ContextId contextId );
101 
102 public: //StatLogInterface
103 
107  virtual void LogContextStatistics( const char* const text );
108 
109 private:
110 
116  void LogMarker( const PerformanceMarker& marker, const char* const description );
117 
118 private:
119 
124 
125 #if defined(NETWORK_LOGGING_ENABLED)
126  NetworkPerformanceServer mNetworkServer;
127  bool mNetworkControlEnabled;
128 #endif
129 
131  unsigned int mStatisticsLogBitmask;
133 
136 };
137 
138 
139 } // namespace Internal
140 
141 } // namespace Adaptor
142 
143 } // namespace Dali
144 
145 #endif
Dali Docs Home
Read more about Dali