[dali_1.3.40] Merge branch 'devel/master'
[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) 2018 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
22
23 // INTERNAL INCLUDES
24 #include <dali/public-api/common/dali-common.h>
25
26 namespace Dali
27 {
28
29 namespace Integration
30 {
31
32 enum ProfilingType
33 {
34   PROFILING_TYPE_PAN_GESTURE,
35
36   PROFILING_TYPE_END
37 };
38
39 /**
40  * Called by adaptor to provide profiling information.
41  *
42  * @pre Should be called after Core creation.
43  * @param type The type of profiling information to output.
44  */
45 DALI_CORE_API void EnableProfiling( ProfilingType type );
46
47
48 namespace Profiling
49 {
50
51 DALI_CORE_API extern const int ANIMATION_MEMORY_SIZE;    ///< Total size of animation and associated internal objects
52 DALI_CORE_API extern const int CONSTRAINT_MEMORY_SIZE;   ///< Total size of constraint and associated internal objects
53 DALI_CORE_API extern const int ACTOR_MEMORY_SIZE;        ///< Total size of actor and associated internal objects
54 DALI_CORE_API extern const int CAMERA_ACTOR_MEMORY_SIZE; ///< Total size of camera actor and associated internal objects
55 DALI_CORE_API extern const int IMAGE_ACTOR_MEMORY_SIZE;  ///< Total size of image actor and associated internal objects
56 DALI_CORE_API extern const int LAYER_MEMORY_SIZE;        ///< Total size of layer and associated internal objects
57 DALI_CORE_API extern const int IMAGE_MEMORY_SIZE;        ///< Total size of image and associated internal objects
58
59 DALI_CORE_API extern const int RENDERER_MEMORY_SIZE;     ///< Total size of renderer and associated internal objects
60 DALI_CORE_API extern const int GEOMETRY_MEMORY_SIZE;     ///< Total size of geometry and associated internal objects
61 DALI_CORE_API extern const int PROPERTY_BUFFER_MEMORY_SIZE;     ///< Total size of property-0buffer and associated internal objects
62 DALI_CORE_API extern const int TEXTURE_SET_MEMORY_SIZE;     ///< Total size of TextureSet and associated internal objects
63 DALI_CORE_API extern const int SAMPLER_MEMORY_SIZE;     ///< Total size of Sampler and associated internal objects
64 DALI_CORE_API extern const int SHADER_MEMORY_SIZE;     ///< Total size of shader and associated internal objects
65 } // namespace Profiling
66
67 } // namespace Integration
68
69 } // namespace Dali
70
71 #endif // __DALI_INTEGRATION_PROFILING_H__