Dali 3D User Interface Engine
profiling.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 // CLASS HEADER
20 
21 // INTERNAL INCLUDES
23 
26 
31 
34 
41 
42 
45 
48 
51 
54 
57 
63 
66 
67 namespace Dali
68 {
69 
70 namespace Integration
71 {
72 
74 {
75  GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
76 
77  switch( type )
78  {
80  {
81  eventProcessor.EnablePanGestureProfiling();
82  break;
83  }
84  case PROFILING_TYPE_END:
85  {
86  // nothing to do
87  break;
88  }
89  }
90 }
91 
92 namespace Profiling
93 {
94 
95 const int ANIMATION_MEMORY_SIZE(
96  sizeof( Internal::Animation ) +
99 const int CONSTRAINT_MEMORY_SIZE(
100  sizeof( Internal::Constraint<float> ) +
102 const int ACTOR_MEMORY_SIZE(
103  sizeof( Internal::Actor ) +
104  sizeof( Internal::ActorAttachment ) +
105  sizeof( Internal::SceneGraph::Node ) +
107 const int CAMERA_ACTOR_MEMORY_SIZE(
108  sizeof( Internal::CameraActor ) +
109  sizeof( Internal::CameraAttachment ) +
110  sizeof( Internal::SceneGraph::Node ) +
112 const int IMAGE_ACTOR_MEMORY_SIZE(
113  sizeof( Internal::ImageActor ) +
114  sizeof( Internal::SceneGraph::Node ) +
115  sizeof( Internal::Render::Renderer ));
116 const int LAYER_MEMORY_SIZE(
117  sizeof( Internal::Layer ) +
118  sizeof( Internal::ActorAttachment ) +
119  sizeof( Internal::SceneGraph::Layer ) +
121 const int IMAGE_MEMORY_SIZE(
122  sizeof( Internal::Image ) +
124  sizeof( Integration::Bitmap ) +
125  sizeof( Internal::TextureMetadata ) +
126  sizeof( Internal::BitmapTexture ) +
127  sizeof( Internal::ImageTicket ) );
128 const int RENDERER_MEMORY_SIZE(
129  sizeof( Internal::Renderer ) +
131  sizeof( Internal::Render::Renderer ) );
132 const int GEOMETRY_MEMORY_SIZE(
133  sizeof( Internal::Geometry ) +
137  sizeof( Internal::PropertyBuffer ) +
139 const int MATERIAL_MEMORY_SIZE(
140  sizeof( Internal::Material ) +
141  sizeof( Internal::SceneGraph::Material ) );
142 const int SAMPLER_MEMORY_SIZE(
143  sizeof( Internal::Sampler ) +
144  sizeof( Internal::Render::Sampler ) );
145 const int SHADER_MEMORY_SIZE(
146  sizeof( Internal::Shader ) +
147  sizeof( Internal::SceneGraph::Shader ) );
148 
149 } // namespace Profiling
150 
151 } // namespace Integration
152 
153 } // namespace Dali
Dali Docs Home
Read more about Dali