Resource profiling wrapper for load task. More...
#include <kanzi/core.ui/resource/resource_profiling_load_task.hpp>
Public Member Functions | |
| void | finishFunction (const ResourceLoaderThreadContext *context) override |
Calls finishFunction() of the m_loadTask object and measures its execution time. | |
| ResourceSharedPtr | getResult () override |
| Gets the deployed resource. | |
| void | loadFunction (const ResourceLoaderThreadContext *context) override |
Calls loadFunction() of the m_loadTask object and measures its execution time. | |
Public Member Functions inherited from kanzi::ResourceManager::LoadTask | |
| ResourceManager * | getResourceManager () const |
| Get the resource manager of a load task. | |
| Type | getType () const |
| Get the type of a load task. | |
| LoadTask () | |
| Constructor. | |
| LoadTask (const Type type) | |
| Constructor. | |
| virtual | ~LoadTask () |
| Destructor. | |
Static Public Member Functions | |
| static ProfiledLoadTaskSharedPtr | wrapTask (ResourceProfilingDataSampleSharedPtr profilingDataSample, ResourceManager::LoadTaskSharedPtr loadTask) |
| Creates a new resource profiling load task. | |
Additional Inherited Members | |
Public Types inherited from kanzi::ResourceManager::LoadTask | |
| enum class | Type { LoadAndFinish , FinishOnly } |
| The type of the load task. More... | |
Protected Member Functions inherited from kanzi::ResourceManager::LoadTask | |
| void | enqueueDependencies (UrlContainer urls) |
| Add resource dependencies for the load task. | |
Resource profiling wrapper for load task.
Use this wrapper to measure the time that the loading task spends loading and deploying resources. The wrapper derives from ResourceManager::LoadTask and implements the load task interface. The original loading task object is passed to the constructor of this class and stored in m_loadTask. The loadFunction() and finishFunction() functions call the corresponding functions of the original object and measure the execution time which is then passed to the corresponding resource profiling contexts.
|
inlinestatic |
Creates a new resource profiling load task.
| profilingDataSample | The profiling data sample. |
| loadTask | The original load task. |
|
overridevirtual |
Calls loadFunction() of the m_loadTask object and measures its execution time.
| context | The context of the loading thread. |
Implements kanzi::ResourceManager::LoadTask.
|
overridevirtual |
Calls finishFunction() of the m_loadTask object and measures its execution time.
| context | The context of the deploying thread. |
Implements kanzi::ResourceManager::LoadTask.
|
overridevirtual |
Gets the deployed resource.
Implements kanzi::ResourceManager::LoadTask.