Merge branch 'master' into tizen
[platform/core/uifw/dali-core.git] / dali / integration-api / profiling.h
1 #ifndef __DALI_INTEGRATION_PROFILING_H__
2 #define __DALI_INTEGRATION_PROFILING_H__
3
4 //
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
6 //
7 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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 // EXTERNAL INCLUDES
21
22 // INTERNAL INCLUDES
23 #include <dali/public-api/common/dali-common.h>
24
25 namespace Dali
26 {
27
28 namespace Integration
29 {
30
31 enum ProfilingType
32 {
33   PROFILING_TYPE_PAN_GESTURE,
34
35   PROFILING_TYPE_END
36 };
37
38 /**
39  * Called by adaptor to provide profiling information.
40  *
41  * @pre Should be called after Core creation.
42  * @param type The type of profiling information to output.
43  */
44 DALI_IMPORT_API void EnableProfiling( ProfilingType type );
45
46 /**
47  * @brief Called by adaptor to set the pan gesture prediction mode from
48  * an environment variable
49  *
50  * @pre Should be called after Core creation.
51  * @param mode The pan gesture prediction mode.
52  */
53 DALI_IMPORT_API void SetPanGesturePredictionMode( int mode );
54
55
56 namespace Profiling
57 {
58
59 DALI_IMPORT_API extern const int ANIMATION_MEMORY_SIZE;    ///< Total size of animation and associated internal objects
60 DALI_IMPORT_API extern const int CONSTRAINT_MEMORY_SIZE;   ///< Total size of constraint and associated internal objects
61 DALI_IMPORT_API extern const int ACTOR_MEMORY_SIZE;        ///< Total size of actor and associated internal objects
62 DALI_IMPORT_API extern const int CAMERA_ACTOR_MEMORY_SIZE; ///< Total size of camera actor and associated internal objects
63 DALI_IMPORT_API extern const int TEXT_ACTOR_MEMORY_SIZE;   ///< Total size of text actor and associated internal objects
64 DALI_IMPORT_API extern const int MESH_ACTOR_MEMORY_SIZE;   ///< Total size of mesh actor and associated internal objects
65 DALI_IMPORT_API extern const int IMAGE_ACTOR_MEMORY_SIZE;  ///< Total size of image actor and associated internal objects
66 DALI_IMPORT_API extern const int LAYER_MEMORY_SIZE;        ///< Total size of layer and associated internal objects
67 DALI_IMPORT_API extern const int IMAGE_MEMORY_SIZE;        ///< Total size of image and associated internal objects
68 DALI_IMPORT_API extern const int MESH_MEMORY_SIZE;         ///< Total size of mesh and associated internal objects
69 DALI_IMPORT_API extern const int MATERIAL_MEMORY_SIZE;     ///< Total size of material and associated internal objects
70 } // namespace Profiling
71
72 } // namespace Integration
73
74 } // namespace Dali
75
76 #endif // __DALI_INTEGRATION_PROFILING_H__