Kanzi 3.9.10
kanzi::ResourceProfilingDataSample Class Reference

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 ResourceProfilingContextgetAcquireContext () const
 Gets the acquire resource context.
 
void getAttributes (ResourceProfilingAttributes &attributes) const
 Gets the attributes of the profiled resource.
 
const ResourceProfilingContextgetDeploymentContext () 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 ResourceProfilingContextgetLoadingContext () 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.
 

Detailed Description

The resource profiling data sample.

Constructor & Destructor Documentation

◆ ResourceProfilingDataSample()

kanzi::ResourceProfilingDataSample::ResourceProfilingDataSample ( ResourceProfilingContextSharedPtr acquireContext,
string_view url )
explicitprotected

Constructor.

Parameters
acquireContextThe acquire context.
urlThe URL of the profiled context.

Member Function Documentation

◆ getLoadingDuration()

ResourceProfilingContext::Duration kanzi::ResourceProfilingDataSample::getLoadingDuration ( ) const

Gets the duration of resource loading.

Returns
The duration of resource loading.

◆ getDeploymentDuration()

ResourceProfilingContext::Duration kanzi::ResourceProfilingDataSample::getDeploymentDuration ( ) const

Gets the duration of resource deployment.

Returns
The duration of resource deployment.

◆ getUrl()

string kanzi::ResourceProfilingDataSample::getUrl ( ) const

Gets the URL of the profiled resource.

Returns
The URL of the profiled resource.

◆ getType()

string kanzi::ResourceProfilingDataSample::getType ( ) const

Gets the type of the profiled resource.

Returns
The type of the profiled resource.
See also
setResourceType()

◆ getID()

uint64_t kanzi::ResourceProfilingDataSample::getID ( ) const

Gets the ID of the profiled resource.

Returns
The ID of the profiled resource.

◆ getSuccess()

bool kanzi::ResourceProfilingDataSample::getSuccess ( ) const

Gets the loading status of the profiled resource.

Returns
The loading status of the profiled resource.

◆ addLoadingDuration()

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.

Parameters
loadingContextThe loading context.
durationThe loading duration.
See also
getLoadingContext(), getLoadingDuration()

◆ addDeploymentDuration()

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.

Parameters
deploymentContextThe deployment context.
durationThe deployment duration.
See also
getDeploymentContext(), getDeploymentDuration()

◆ setResourceType()

void kanzi::ResourceProfilingDataSample::setResourceType ( string_view type)

Sets the type of the profiled resource.

Parameters
typeThe type of the profiled resource.
See also
getType()

◆ setSuccess()

void kanzi::ResourceProfilingDataSample::setSuccess ( bool success)

Sets the loading status of the profiled resource.

Parameters
successThe loading status of the profiled resource.
See also
getSuccess()

◆ getAcquireContext()

const ResourceProfilingContext * kanzi::ResourceProfilingDataSample::getAcquireContext ( ) const
inline

Gets the acquire resource context.

Returns
The acquire resource context.

◆ getLoadingContext()

const ResourceProfilingContext * kanzi::ResourceProfilingDataSample::getLoadingContext ( ) const
inline

Gets the loading context.

Returns
The loading context.

◆ getDeploymentContext()

const ResourceProfilingContext * kanzi::ResourceProfilingDataSample::getDeploymentContext ( ) const
inline

Gets the deployment context.

Returns
The deployment context.

◆ getAttributes()

void kanzi::ResourceProfilingDataSample::getAttributes ( ResourceProfilingAttributes & attributes) const

Gets the attributes of the profiled resource.

Parameters
attributesThe attributes object to fill out with the attributes of the profiled resource.

The documentation for this class was generated from the following file: