52 client = PStatClient::get_global_pstats();
56 if (thread_index != -1) {
62 (*this) = client->make_thread(thread);
77 _client(copy._client),
87 INLINE
void PStatThread::
89 _client = copy._client;
108 _client->get_impl()->new_frame(_index);
121 _client->get_impl()->add_frame(_index, frame_data);
int get_pstats_index() const
Returns the PStats index associated with this thread, or -1 if no index has yet been associated with ...
Contains the raw timing and level data for a single frame.
A lightweight class that represents a single thread of execution to PStats.
A thread; that is, a lightweight process.
void new_frame()
This must be called at the start of every "frame", whatever a frame may be deemed to be...
Manages the communications to report statistics via a network connection to a remote PStatServer...
void add_frame(const PStatFrameData &frame_data)
This is a slightly lower-level version of new_frame that also specifies the data to send for this fra...
int get_index() const
Returns the index number of this particular thread within the PStatClient.