Ocular Engine
Ocular::Core::ResourceMemoryDetails Class Reference

Public Member Functions

void resourceLoaded (Resource const *resource)
 
void resourceUnloaded (Resource const *resource)
 
uint64_t getTotalMemoryUsage () const
 
uint64_t getMemoryUsage (ResourceType type) const
 

Member Function Documentation

uint64_t Ocular::Core::ResourceMemoryDetails::getMemoryUsage ( ResourceType  type) const
Parameters
[in]typeType of Resource to query about
Returns
The total amount of memory, in bytes, used by all Resources of the specified type.
uint64_t Ocular::Core::ResourceMemoryDetails::getTotalMemoryUsage ( ) const
Returns
The total amount of memory, in bytes, in use by tracked Resources.
void Ocular::Core::ResourceMemoryDetails::resourceLoaded ( Resource const *  resource)

Notifies that the specified resource has been loaded into memory.

Parameters
[in]resource
void Ocular::Core::ResourceMemoryDetails::resourceUnloaded ( Resource const *  resource)

Notifies that the specified resource has be unloaded from memory.

Parameters
[in]resource

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