PStatThread

from panda3d.core import PStatThread
class PStatThread

Bases: DTOOL_SUPER_BASE

A lightweight class that represents a single thread of execution to PStats. It corresponds one-to-one with Panda’s Thread instance.

Inheritance diagram

Inheritance diagram of PStatThread

__init__(*args, **kwargs)
assign()

C++ Interface: assign(const PStatThread self, const PStatThread copy)

getIndex()

C++ Interface: get_index(PStatThread self)

/**
  • Returns the index number of this particular thread within the PStatClient.

*/

getThread()

C++ Interface: get_thread(PStatThread self)

/**
  • Returns the Panda Thread object associated with this particular

  • PStatThread.

*/

get_index()

C++ Interface: get_index(PStatThread self)

/**
  • Returns the index number of this particular thread within the PStatClient.

*/

get_thread()

C++ Interface: get_thread(PStatThread self)

/**
  • Returns the Panda Thread object associated with this particular

  • PStatThread.

*/

index
newFrame()

C++ Interface: new_frame(const PStatThread self, int frame_number)

/**
  • 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.

*/

new_frame()

C++ Interface: new_frame(const PStatThread self, int frame_number)

/**
  • 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.

*/

thread