X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fprofiling.cpp;h=6e2349da6d1e7e507d29a79955e6d8c9300cdd23;hb=d12ff6718dd01d8fa663550ff178e228062c40d4;hp=4343fe5b398a212d6e7dd527555681d5eb6166f7;hpb=4799cbda311480b0c1e8d8725aac532c64bede9b;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/profiling.cpp b/dali/integration-api/profiling.cpp index 4343fe5..6e2349d 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) 2021 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,80 +26,54 @@ #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 -#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 +#include +#include using Dali::Internal::GestureEventProcessor; using Dali::Internal::ThreadLocalStorage; namespace Dali { - namespace Integration { - -void EnableProfiling( ProfilingType type ) +void EnableProfiling(ProfilingType type) { GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); - switch( type ) + switch(type) { case PROFILING_TYPE_PAN_GESTURE: { eventProcessor.EnablePanGestureProfiling(); + break; } - - default: + case PROFILING_TYPE_END: { - // Do nothing + // nothing to do break; } } @@ -107,65 +81,42 @@ void EnableProfiling( ProfilingType type ) 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 > ) + - sizeof( Internal::ActiveConstraint ) ); -const int 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::CameraActor ) + - sizeof( Internal::CameraAttachment ) + - sizeof( Internal::SceneGraph::Node ) + - sizeof( Internal::SceneGraph::CameraAttachment ) ); -const int TEXT_ACTOR_MEMORY_SIZE( - sizeof( Internal::TextActor ) + - sizeof( Internal::TextAttachment ) + - sizeof( Internal::SceneGraph::Node ) + - sizeof( Internal::SceneGraph::TextAttachment ) + - sizeof( Internal::TextParameters ) + - sizeof( Internal::SceneGraph::TextRenderer ) ); -const int MESH_ACTOR_MEMORY_SIZE( - sizeof( Internal::MeshActor ) + - sizeof( Internal::MeshAttachment ) + - sizeof( Internal::SceneGraph::Node ) + - sizeof( Internal::SceneGraph::MeshAttachment ) + - sizeof( Internal::SceneGraph::MeshRenderer ) ); -const int IMAGE_ACTOR_MEMORY_SIZE( - sizeof( Internal::ImageActor ) + - sizeof( Internal::ImageAttachment ) + - sizeof( Internal::SceneGraph::Node ) + - sizeof( Internal::SceneGraph::ImageAttachment ) + - sizeof( Internal::SceneGraph::ImageRenderer )); -const int LAYER_MEMORY_SIZE( - sizeof( Internal::Layer ) + - sizeof( Internal::ActorAttachment ) + - sizeof( Internal::SceneGraph::Layer ) + - sizeof( Internal::SceneGraph::NodeAttachment ) ); -const int IMAGE_MEMORY_SIZE( - sizeof( Internal::Image ) + - sizeof( Internal::ImageFactoryCache::Request ) + - sizeof( Integration::Bitmap ) + - sizeof( Internal::BitmapMetadata ) + - sizeof( Internal::BitmapTexture ) + - sizeof( Internal::ImageTicket ) ); -const int MESH_MEMORY_SIZE( - sizeof( Internal::Mesh ) + - sizeof( Internal::MeshData ) + - sizeof( Internal::SceneGraph::Mesh ) + - sizeof( Internal::ResourceTicket ) ); -const int MATERIAL_MEMORY_SIZE( - sizeof( Internal::Material ) + - sizeof( Internal::SceneGraph::Material ) + - sizeof( Internal::SceneGraph::RenderMaterial ) ); +const std::size_t ANIMATION_MEMORY_SIZE( + sizeof(Internal::Animation) + + sizeof(Internal::AnimatorConnector) + + sizeof(Internal::SceneGraph::Animation)); +const std::size_t CONSTRAINT_MEMORY_SIZE( + sizeof(Internal::Constraint) + + sizeof(Internal::SceneGraph::Constraint >)); +const std::size_t ACTOR_MEMORY_SIZE( + sizeof(Internal::Actor) + + sizeof(Internal::SceneGraph::Node)); +const std::size_t CAMERA_ACTOR_MEMORY_SIZE( + sizeof(Internal::CameraActor) + + sizeof(Internal::SceneGraph::Node) + + sizeof(Internal::SceneGraph::Camera)); +const std::size_t LAYER_MEMORY_SIZE( + sizeof(Internal::Layer) + + sizeof(Internal::SceneGraph::Layer)); +const std::size_t RENDERER_MEMORY_SIZE( + sizeof(Internal::Renderer) + + sizeof(Internal::SceneGraph::Renderer) + + sizeof(Internal::Render::Renderer)); +const std::size_t GEOMETRY_MEMORY_SIZE( + sizeof(Internal::Geometry) + + sizeof(Internal::Render::Geometry)); +const std::size_t PROPERTY_BUFFER_MEMORY_SIZE( + sizeof(Internal::VertexBuffer) + + sizeof(Internal::Render::VertexBuffer)); +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 std::size_t SHADER_MEMORY_SIZE( + sizeof(Internal::Shader) + + sizeof(Internal::SceneGraph::Shader)); } // namespace Profiling