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