Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ProfileThread Class Reference

Collects all samples of a single thread. More...

#include <Profiler.h>

Inheritance diagram for ProfileThread:
NonCopyable

Public Member Functions

JPH_OVERRIDE_NEW_DELETE ProfileThread (const string_view &inThreadName)
 Constructor. More...
 
 ~ProfileThread ()
 
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Static Public Member Functions

static void sSetInstance (ProfileThread *inInstance)
 
static ProfileThreadsGetInstance ()
 

Public Attributes

String mThreadName
 Name of the thread that we're collecting information for. More...
 
ProfileSample mSamples [cMaxSamples]
 Buffer of samples. More...
 
uint mCurrentSample = 0
 Next position to write a sample to. More...
 

Static Public Attributes

static const uint cMaxSamples = 65536
 

Detailed Description

Collects all samples of a single thread.

Constructor & Destructor Documentation

◆ ProfileThread()

JPH_NAMESPACE_BEGIN ProfileThread::ProfileThread ( const string_view &  inThreadName)
inline

Constructor.

◆ ~ProfileThread()

ProfileThread::~ProfileThread ( )
inline

Member Function Documentation

◆ sGetInstance()

static ProfileThread * ProfileThread::sGetInstance ( )
inlinestatic

◆ sSetInstance()

static void ProfileThread::sSetInstance ( ProfileThread inInstance)
inlinestatic

Member Data Documentation

◆ cMaxSamples

const uint ProfileThread::cMaxSamples = 65536
static

◆ mCurrentSample

uint ProfileThread::mCurrentSample = 0

Next position to write a sample to.

◆ mSamples

ProfileSample ProfileThread::mSamples[cMaxSamples]

Buffer of samples.

◆ mThreadName

String ProfileThread::mThreadName

Name of the thread that we're collecting information for.


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