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;
void add_collector(PStatCollectorDef *def)
Adds a new collector definition to the dataset.
int get_toplevel_collector(int index) const
Returns the collector index of the nth toplevel collector.
void close()
Closes the client connection if it is open.
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...
The data associated with a particular client, but not with any one particular frame or thread: the li...
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
const PStatCollectorDef & get_collector_def(int index) const
Returns the nth collector definition.
std::string get_collector_fullname(int index) const
Returns the "full name" of the indicated collector.
int get_num_threads() const
Returns the total number of threads the Data knows about.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
std::string get_collector_name(int index) const
Returns the name of the indicated collector.
A dynamic array with an unlimited number of bits.
bool has_collector(int index) const
Returns true if the indicated collector has been defined by the client already, false otherwise.
This is the class that does all the work for handling communications from a single Panda client.
Records the version number of a particular client.
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.
Contains the raw timing and level data for a single frame.
int get_num_collectors() const
Returns the total number of collectors the Data knows about.
A collection of FrameData structures for recently-received frames within a particular thread.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
const PStatThreadData * get_thread_data(int index) const
Returns the data associated with the indicated 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.
Defines the details about the Collectors: the name, the suggested color, etc.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int get_num_toplevel_collectors() const
Returns the total number of collectors that are toplevel collectors.
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...