Base Framework
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Profiler::Task Class Reference

#include <base/Profiler.h>

Inherited by Profiler::ComputeTask, Profiler::IOTask, Profiler::RenderingTask, Profiler::ResourceCreateTask, Profiler::SecurityTask, Profiler::UITask, and Profiler::WaitTask.

Public Member Functions

 Task (const char *_name, const char *_cat=nullptr) noexcept
 
 ~Task () noexcept
 

Static Public Member Functions

static unsigned int getTask (const char *name, const char *cat) noexcept
 
static void pushTask (unsigned int taskId) noexcept
 

Protected Member Functions

void setTaskPath (const String &path) noexcept
 
void setTaskResourceHandle (const ResourceHandle &handle) noexcept
 
void setTaskSecurityLevel (unsigned int securityLevel) noexcept
 
void setTaskWaitId (const char *id) noexcept
 
void setTaskWaitHandle (const Resource &resource) noexcept
 
void setTaskWaitHandle (const ResourceHandle &handle) noexcept
 
void setTaskBytesRead (const uint8 *buffer, unsigned int bytesRead) noexcept
 
void setTaskBytesWritten (const uint8 *buffer, unsigned int bytesWritten) noexcept
 

Detailed Description

Task.

Constructor & Destructor Documentation

◆ Task()

Profiler::Task::Task ( const char *  _name,
const char *  _cat = nullptr 
)
inlinenoexcept

Task start.

◆ ~Task()

Profiler::Task::~Task ( )
inlinenoexcept

Task complete.

Member Function Documentation

◆ getTask()

static unsigned int Profiler::Task::getTask ( const char *  name,
const char *  cat 
)
staticnoexcept

Allocates new task.

◆ pushTask()

static void Profiler::Task::pushTask ( unsigned int  taskId)
staticnoexcept

Pushes task.

◆ setTaskBytesRead()

void Profiler::Task::setTaskBytesRead ( const uint8 *  buffer,
unsigned int  bytesRead 
)
protectednoexcept

Sets bytes read for task.

◆ setTaskBytesWritten()

void Profiler::Task::setTaskBytesWritten ( const uint8 *  buffer,
unsigned int  bytesWritten 
)
protectednoexcept

Sets bytes written for task.

◆ setTaskPath()

void Profiler::Task::setTaskPath ( const String path)
protectednoexcept

Sets the path for the resource handle for the object.

◆ setTaskResourceHandle()

void Profiler::Task::setTaskResourceHandle ( const ResourceHandle handle)
protectednoexcept

Sets the resource handle for the object.

◆ setTaskSecurityLevel()

void Profiler::Task::setTaskSecurityLevel ( unsigned int  securityLevel)
protectednoexcept

Sets the security level for the object.

◆ setTaskWaitHandle() [1/2]

void Profiler::Task::setTaskWaitHandle ( const Resource resource)
protectednoexcept

Sets the resource handle for the object.

◆ setTaskWaitHandle() [2/2]

void Profiler::Task::setTaskWaitHandle ( const ResourceHandle handle)
protectednoexcept

Sets the resource handle for the object.

◆ setTaskWaitId()

void Profiler::Task::setTaskWaitId ( const char *  id)
protectednoexcept

Sets the name of the object.