# PStatThread

from pandac.PandaModules import PStatThread

Class : PStatThread
Description : A lightweight class that represents a single thread of execution to PStats. It corresponds one-to-one with Panda's Thread instance.

## Inheritance:

PStatThread:

## Methods of PStatThread:

getIndex
getThread
newFrame
operator =

getIndex int PStatThread::get_index(void) const; Description: Returns the index number of this particular thread within the PStatClient.

getThread Thread *PStatThread::get_thread(void) const; Description: Returns the Panda Thread object associated with this particular PStatThread.

newFrame void PStatThread::new_frame(void); Description: This must be called at the start of every "frame", whatever a frame may be deemed to be, to accumulate all the stats that have collected so far for the thread and ship them off to the server. Calling PStatClient::thread_tick() will automatically call this for any threads with the indicated sync name.

operator = void PStatThread::operator =(PStatThread const &copy); Description: