Hymn to Beauty
C++ 3D Engine
ProfilingManager Class Reference

Handles profiling. More...

#include <ProfilingManager.hpp>

Public Member Functions

void BeginFrame ()
 Begin profiling a frame. More...
 
void EndFrame ()
 End profiling a frame and collect the results. More...
 
bool Active () const
 Check whether ProfilingManager is active. More...
 
void SetActive (bool active)
 Set whether ProfilingManager is active. More...
 
unsigned int GetFrameCount () const
 Get number of frames being monitored. More...
 
const float * GetCPUFrameTimes () const
 Get the measured CPU frame times. More...
 
void FetchGPUTimeline ()
 Get GPU timeline from the render manager. More...
 
const Profiling::TimelineGetTimeline () const
 Get the timeline. More...
 

Friends

class Hub
 

Detailed Description

Handles profiling.

Member Function Documentation

◆ Active()

bool ProfilingManager::Active ( ) const

Check whether ProfilingManager is active.

Returns
Active state.

◆ BeginFrame()

void ProfilingManager::BeginFrame ( )

Begin profiling a frame.

◆ EndFrame()

void ProfilingManager::EndFrame ( )

End profiling a frame and collect the results.

◆ FetchGPUTimeline()

void ProfilingManager::FetchGPUTimeline ( )

Get GPU timeline from the render manager.

◆ GetCPUFrameTimes()

const float * ProfilingManager::GetCPUFrameTimes ( ) const

Get the measured CPU frame times.

Returns
The CPU frame times.

◆ GetFrameCount()

unsigned int ProfilingManager::GetFrameCount ( ) const

Get number of frames being monitored.

Returns
The number of frames being stored.

◆ GetTimeline()

const Profiling::Timeline & ProfilingManager::GetTimeline ( ) const

Get the timeline.

Returns
The timeline.

◆ SetActive()

void ProfilingManager::SetActive ( bool  active)

Set whether ProfilingManager is active.

Parameters
activeActive state.

Friends And Related Function Documentation

◆ Hub

friend class Hub
friend

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