The resource profiling data sample. More...
#include <kanzi/core.ui/resource/resource_profiling_data_sample.hpp>
Classes | |
| class | Factory |
| The resource factory. More... | |
Public Member Functions | |
| void | addDeploymentDuration (ResourceProfilingContextSharedPtr deploymentContext, ResourceProfilingContext::Duration duration) |
| Adds to the resource profiling data sample the duration of resource deployment and the deployment context. | |
| void | addLoadingDuration (ResourceProfilingContextSharedPtr loadingContext, ResourceProfilingContext::Duration duration) |
| Adds to the resource profiling data sample the duration of resource loading and the loading context. | |
| const ResourceProfilingContext * | getAcquireContext () const |
| Gets the acquire resource context. | |
| void | getAttributes (ResourceProfilingAttributes &attributes) const |
| Gets the attributes of the profiled resource. | |
| const ResourceProfilingContext * | getDeploymentContext () const |
| Gets the deployment context. | |
| ResourceProfilingContext::Duration | getDeploymentDuration () const |
| Gets the duration of resource deployment. | |
| uint64_t | getID () const |
| Gets the ID of the profiled resource. | |
| const ResourceProfilingContext * | getLoadingContext () const |
| Gets the loading context. | |
| ResourceProfilingContext::Duration | getLoadingDuration () const |
| Gets the duration of resource loading. | |
| bool | getSuccess () const |
| Gets the loading status of the profiled resource. | |
| string | getType () const |
| Gets the type of the profiled resource. | |
| string | getUrl () const |
| Gets the URL of the profiled resource. | |
| void | setResourceType (string_view type) |
| Sets the type of the profiled resource. | |
| void | setSuccess (bool success) |
| Sets the loading status of the profiled resource. | |
Protected Member Functions | |
| ResourceProfilingDataSample (ResourceProfilingContextSharedPtr acquireContext, string_view url) | |
| Constructor. | |
The resource profiling data sample.
|
explicitprotected |
Constructor.
| acquireContext | The acquire context. |
| url | The URL of the profiled context. |
| ResourceProfilingContext::Duration kanzi::ResourceProfilingDataSample::getLoadingDuration | ( | ) | const |
Gets the duration of resource loading.
| ResourceProfilingContext::Duration kanzi::ResourceProfilingDataSample::getDeploymentDuration | ( | ) | const |
Gets the duration of resource deployment.
| string kanzi::ResourceProfilingDataSample::getUrl | ( | ) | const |
Gets the URL of the profiled resource.
| string kanzi::ResourceProfilingDataSample::getType | ( | ) | const |
Gets the type of the profiled resource.
| uint64_t kanzi::ResourceProfilingDataSample::getID | ( | ) | const |
Gets the ID of the profiled resource.
| bool kanzi::ResourceProfilingDataSample::getSuccess | ( | ) | const |
Gets the loading status of the profiled resource.
| void kanzi::ResourceProfilingDataSample::addLoadingDuration | ( | ResourceProfilingContextSharedPtr | loadingContext, |
| ResourceProfilingContext::Duration | duration ) |
Adds to the resource profiling data sample the duration of resource loading and the loading context.
| loadingContext | The loading context. |
| duration | The loading duration. |
| void kanzi::ResourceProfilingDataSample::addDeploymentDuration | ( | ResourceProfilingContextSharedPtr | deploymentContext, |
| ResourceProfilingContext::Duration | duration ) |
Adds to the resource profiling data sample the duration of resource deployment and the deployment context.
| deploymentContext | The deployment context. |
| duration | The deployment duration. |
| void kanzi::ResourceProfilingDataSample::setResourceType | ( | string_view | type | ) |
Sets the type of the profiled resource.
| type | The type of the profiled resource. |
Sets the loading status of the profiled resource.
| success | The loading status of the profiled resource. |
|
inline |
Gets the acquire resource context.
|
inline |
Gets the loading context.
|
inline |
Gets the deployment context.
| void kanzi::ResourceProfilingDataSample::getAttributes | ( | ResourceProfilingAttributes & | attributes | ) | const |
Gets the attributes of the profiled resource.
| attributes | The attributes object to fill out with the attributes of the profiled resource. |