14#ifndef PSTATTHREADDATA_H
15#define PSTATTHREADDATA_H
65 void compute_elapsed_frames();
70 int _first_frame_number;
73 bool _computed_elapsed_frames;
74 bool _got_elapsed_frames;
The data associated with a particular client, but not with any one particular frame or thread: the li...
Defines the details about the Collectors: the name, the suggested color, etc.
Contains the raw timing and level data for a single frame.
A collection of FrameData structures for recently-received frames within a particular thread.
void set_history(double time)
Sets the number of seconds worth of frames that will be retained by the ThreadData structure as each ...
bool get_elapsed_frames(int &then_i, int &now_i) const
Computes the oldest frame number not older than pstats_average_time seconds, and the newest frame num...
int get_frame_number_at_time(double time, int hint=-1) const
Returns the frame number of the latest frame not later than the indicated time.
bool is_empty() const
Returns true if the structure contains no frames, false otherwise.
double get_history() const
Returns the number of seconds worth of frames that will be retained by the ThreadData structure as ea...
double get_frame_rate() const
Computes the average frame rate over the past pstats_average_time seconds, by counting up the number ...
const PStatFrameData & get_frame_at_time(double time) const
Returns the FrameData structure associated with the latest frame not later than the indicated time.
const PStatFrameData & get_latest_frame() const
Returns the FrameData associated with the most recent frame.
const PStatClientData * get_client_data() const
Returns a pointer to the ClientData structure associated with this data.
bool has_frame(int frame_number) const
Returns true if we have received data for the indicated frame number from the client and we still hav...
const PStatFrameData & get_frame(int frame_number) const
Returns a FrameData structure associated with the indicated frame number.
int get_latest_frame_number() const
Returns the frame number of the most recent frame stored in the data.
int get_oldest_frame_number() const
Returns the frame number of the oldest frame still stored in the data.
double get_latest_time() const
Returns the timestamp (in seconds elapsed since connection) of the latest available frame.
void record_new_frame(int frame_number, PStatFrameData *frame_data)
Makes room for and stores a new frame's worth of data.
double get_oldest_time() const
Returns the timestamp (in seconds elapsed since connection) of the oldest available frame.
A base class for all things that want to be reference-counted.
This is our own Panda specialization on the default STL deque.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.