Go to the documentation of this file.
14 #ifndef PSTATCLIENTDATA_H
15 #define PSTATCLIENTDATA_H
64 void define_thread(
int thread_index,
const std::string &name = std::string());
69 void slot_collector(
int collector_index);
70 void update_toplevel_collectors();
85 typedef vector_int ToplevelCollectors;
86 ToplevelCollectors _toplevel_collectors;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool has_collector(int index) const
Returns true if the indicated collector has been defined by the client already, false otherwise.
void record_new_frame(int thread_index, int frame_number, PStatFrameData *frame_data)
Makes room for and stores a new frame's worth of data associated with some particular thread (which m...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
const PStatCollectorDef & get_collector_def(int index) const
Returns the nth collector definition.
void close()
Closes the client connection if it is open.
Defines the details about the Collectors: the name, the suggested color, etc.
int get_num_threads() const
Returns the total number of threads the Data knows about.
Records the version number of a particular client.
std::string get_thread_name(int index) const
Returns the name of the indicated thread.
bool get_collector_has_level(int index, int thread_index) const
Returns whether the given collector has level data (and consequently, whether it should appear on the...
int get_num_collectors() const
Returns the total number of collectors the Data knows about.
The data associated with a particular client, but not with any one particular frame or thread: the li...
void add_collector(PStatCollectorDef *def)
Adds a new collector definition to the dataset.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool set_collector_has_level(int index, int thread_index, bool flag)
Indicates whether the given collector has level data (and consequently, whether it should appear on t...
std::string get_collector_name(int index) const
Returns the name of the indicated collector.
int get_toplevel_collector(int index) const
Returns the collector index of the nth toplevel collector.
A collection of FrameData structures for recently-received frames within a particular thread.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void define_thread(int thread_index, const std::string &name=std::string())
Adds a new thread definition to the dataset.
bool is_alive() const
Returns true if the data is actively getting filled by a connected client, or false if the client has...
bool has_thread(int index) const
Returns true if the indicated thread has been defined by the client already, false otherwise.
int get_num_toplevel_collectors() const
Returns the total number of collectors that are toplevel collectors.
std::string get_collector_fullname(int index) const
Returns the "full name" of the indicated collector.
int get_child_distance(int parent, int child) const
Returns the number of Collectors between the indicated parent and the child Collector in the relation...
const PStatThreadData * get_thread_data(int index) const
Returns the data associated with the indicated thread.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A dynamic array with an unlimited number of bits.
This is the class that does all the work for handling communications from a single Panda client.
Contains the raw timing and level data for a single frame.