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
 

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
 
static thread_local ProfileThreadsInstance = nullptr
 

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 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.

◆ sInstance

thread_local ProfileThread * ProfileThread::sInstance = nullptr
static

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