X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fprofiling.cpp;h=57a798d0d3bc072f1aa77f753629e707ab812f35;hb=ff364987bf3c2ef5bb2b57348747eeb784d8ba90;hp=5642215cd9bb70cde06a1a1d5bf04eacf05f03da;hpb=fd9e293d3061867757984a0e2ffb913173a8aa6f;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/profiling.cpp b/dali/integration-api/profiling.cpp index 5642215..57a798d 100644 --- a/dali/integration-api/profiling.cpp +++ b/dali/integration-api/profiling.cpp @@ -1,26 +1,60 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // CLASS HEADER #include // INTERNAL INCLUDES +#include + #include #include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + + +#include +#include + +#include +#include + +#include +#include + +#include +#include + +#include +#include +#include +#include +#include +#include + using Dali::Internal::GestureEventProcessor; using Dali::Internal::ThreadLocalStorage; @@ -39,16 +73,65 @@ void EnableProfiling( ProfilingType type ) case PROFILING_TYPE_PAN_GESTURE: { eventProcessor.EnablePanGestureProfiling(); + break; } - - default: + case PROFILING_TYPE_END: { - // Do nothing + // nothing to do break; } } } +namespace Profiling +{ + +const int ANIMATION_MEMORY_SIZE( + sizeof( Internal::Animation ) + + sizeof( Internal::AnimatorConnector ) + + sizeof( Internal::SceneGraph::Animation ) ); +const int CONSTRAINT_MEMORY_SIZE( + sizeof( Internal::Constraint ) + + sizeof( Internal::SceneGraph::Constraint > ) ); +const int ACTOR_MEMORY_SIZE( + sizeof( Internal::Actor ) + + sizeof( Internal::SceneGraph::Node ) ); +const int CAMERA_ACTOR_MEMORY_SIZE( + sizeof( Internal::CameraActor ) + + sizeof( Internal::SceneGraph::Node ) + + sizeof( Internal::SceneGraph::Camera ) ); +const int LAYER_MEMORY_SIZE( + sizeof( Internal::Layer ) + + sizeof( Internal::SceneGraph::Layer ) ); +const int IMAGE_MEMORY_SIZE( + sizeof( Internal::Image ) + + sizeof( Internal::ImageFactoryCache::Request ) + + sizeof( Integration::Bitmap ) + + sizeof( Internal::TextureMetadata ) + + sizeof( Internal::BitmapTexture ) + + sizeof( Internal::ImageTicket ) ); +const int RENDERER_MEMORY_SIZE( + sizeof( Internal::Renderer ) + + sizeof( Internal::SceneGraph::Renderer ) + + sizeof( Internal::Render::Renderer ) ); +const int GEOMETRY_MEMORY_SIZE( + sizeof( Internal::Geometry ) + + sizeof( Internal::Render::Geometry) ); +const int PROPERTY_BUFFER_MEMORY_SIZE( + sizeof( Internal::PropertyBuffer ) + + sizeof( Internal::Render::PropertyBuffer ) ); +const int TEXTURE_SET_MEMORY_SIZE( + sizeof( Internal::TextureSet ) + + sizeof( Internal::SceneGraph::TextureSet ) ); +const int SAMPLER_MEMORY_SIZE( + sizeof( Internal::Sampler ) + + sizeof( Internal::Render::Sampler ) ); +const int SHADER_MEMORY_SIZE( + sizeof( Internal::Shader ) + + sizeof( Internal::SceneGraph::Shader ) ); + +} // namespace Profiling + } // namespace Integration } // namespace Dali