18 #include "pandatoolbase.h"
20 #include "pStatClientData.h"
21 #include "pStatThreadData.h"
22 #include "pStatViewLevel.h"
24 #include "pointerTo.h"
39 void constrain(
int collector,
bool show_level);
70 bool _all_collectors_known;
81 #include "pStatView.I"
int get_level_index() const
Returns an index number that can be used to determine when the set of known levels has changed...
const PStatViewLevel * get_top_level()
Returns a pointer to the level that corresponds to the Collector we've constrained to...
void set_to_frame(const PStatFrameData &frame_data)
Supplies the View with the data for the current frame.
The data associated with a particular client, but not with any one particular frame or thread: the li...
void unconstrain()
Restores the view to the full frame.
bool get_show_level() const
Returns true if we are showing level data, false if time data.
void set_to_time(double time)
Sets to the frame that occurred at the indicated time (or the nearest available frame), extracted from the View's PStatThreadData pointer.
const PStatClientData * get_client_data()
Returns the current PStatClientData associated with the view.
This is a single level value, or band of color, within a View.
Contains the raw timing and level data for a single frame.
A View boils down the frame data to a linear list of times spent in a number of different Collectors...
bool all_collectors_known() const
After a call to set_to_frame(), this returns true if all collectors in the FrameData are known by the...
A collection of FrameData structures for recently-received frames within a particular thread...
double get_net_value() const
Returns the total value accounted for by the frame (or by whatever Collector we are constrained to)...
const PStatThreadData * get_thread_data()
Returns the current PStatThreadData associated with the view.
void constrain(int collector, bool show_level)
Changes the focus of the View.
bool has_level(int collector) const
Returns true if there is a level defined for the particular collector, false otherwise.
PStatViewLevel * get_level(int collector)
Returns a pointer to the level that corresponds to the indicated Collector.