X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fprofiling.cpp;h=04d11d5e3dca93a16de9555466efc228bcbeb664;hb=07c2516c65ef56c71df4c9c3a7461781b06cb91b;hp=d01d274fb905909d1b365b7b4285c0de7a099b92;hpb=2e0f2ef705bf0035100cc94dcc53ea8768a1c93a;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/profiling.cpp b/dali/integration-api/profiling.cpp index d01d274..04d11d5 100644 --- a/dali/integration-api/profiling.cpp +++ b/dali/integration-api/profiling.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -26,13 +26,8 @@ #include #include -#include #include -#include -#include -#include - #include #include #include @@ -42,28 +37,17 @@ #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; @@ -96,59 +80,43 @@ void EnableProfiling( ProfilingType type ) namespace Profiling { -const int ANIMATION_MEMORY_SIZE( +const std::size_t ANIMATION_MEMORY_SIZE( sizeof( Internal::Animation ) + sizeof( Internal::AnimatorConnector ) + sizeof( Internal::SceneGraph::Animation ) ); -const int CONSTRAINT_MEMORY_SIZE( +const std::size_t CONSTRAINT_MEMORY_SIZE( sizeof( Internal::Constraint ) + sizeof( Internal::SceneGraph::Constraint > ) ); -const int ACTOR_MEMORY_SIZE( +const std::size_t ACTOR_MEMORY_SIZE( sizeof( Internal::Actor ) + - sizeof( Internal::ActorAttachment ) + - sizeof( Internal::SceneGraph::Node ) + - sizeof( Internal::SceneGraph::NodeAttachment )); -const int CAMERA_ACTOR_MEMORY_SIZE( + sizeof( Internal::SceneGraph::Node ) ); +const std::size_t CAMERA_ACTOR_MEMORY_SIZE( sizeof( Internal::CameraActor ) + - sizeof( Internal::CameraAttachment ) + - sizeof( Internal::SceneGraph::Node ) + - sizeof( Internal::SceneGraph::CameraAttachment ) ); -const int IMAGE_ACTOR_MEMORY_SIZE( - sizeof( Internal::ImageActor ) + - sizeof( Internal::ImageAttachment ) + sizeof( Internal::SceneGraph::Node ) + - sizeof( Internal::SceneGraph::ImageAttachment ) + - sizeof( Internal::Render::ImageRenderer )); -const int LAYER_MEMORY_SIZE( + sizeof( Internal::SceneGraph::Camera ) ); +const std::size_t LAYER_MEMORY_SIZE( sizeof( Internal::Layer ) + - sizeof( Internal::ActorAttachment ) + - sizeof( Internal::SceneGraph::Layer ) + - sizeof( Internal::SceneGraph::NodeAttachment ) ); -const int IMAGE_MEMORY_SIZE( + sizeof( Internal::SceneGraph::Layer ) ); +const std::size_t IMAGE_MEMORY_SIZE( sizeof( Internal::Image ) + - sizeof( Internal::ImageFactoryCache::Request ) + - sizeof( Integration::Bitmap ) + - sizeof( Internal::BitmapMetadata ) + - sizeof( Internal::BitmapTexture ) + - sizeof( Internal::ImageTicket ) ); -const int RENDERER_MEMORY_SIZE( + sizeof( Integration::Bitmap ) ); +const std::size_t RENDERER_MEMORY_SIZE( sizeof( Internal::Renderer ) + sizeof( Internal::SceneGraph::Renderer ) + - sizeof( Internal::Render::NewRenderer ) ); -const int GEOMETRY_MEMORY_SIZE( + sizeof( Internal::Render::Renderer ) ); +const std::size_t GEOMETRY_MEMORY_SIZE( sizeof( Internal::Geometry ) + - sizeof( Internal::SceneGraph::Geometry ) + - sizeof( Internal::SceneGraph::RenderGeometry) ); -const int PROPERTY_BUFFER_MEMORY_SIZE( + sizeof( Internal::Render::Geometry) ); +const std::size_t PROPERTY_BUFFER_MEMORY_SIZE( sizeof( Internal::PropertyBuffer ) + sizeof( Internal::Render::PropertyBuffer ) ); -const int MATERIAL_MEMORY_SIZE( - sizeof( Internal::Material ) + - sizeof( Internal::SceneGraph::Material ) ); -const int SAMPLER_MEMORY_SIZE( +const std::size_t TEXTURE_SET_MEMORY_SIZE( + sizeof( Internal::TextureSet ) + + sizeof( Internal::SceneGraph::TextureSet ) ); +const std::size_t SAMPLER_MEMORY_SIZE( sizeof( Internal::Sampler ) + sizeof( Internal::Render::Sampler ) ); -const int SHADER_MEMORY_SIZE( +const std::size_t SHADER_MEMORY_SIZE( sizeof( Internal::Shader ) + sizeof( Internal::SceneGraph::Shader ) );