Panda3D
Public Member Functions | Friends | List of all members
PStatViewLevel Class Reference

This is a single level value, or band of color, within a View. More...

#include "pStatViewLevel.h"

Public Member Functions

const PStatViewLevelget_child (int n) const
 Returns the nth child of this Level/Collector. More...
 
int get_collector () const
 Returns the Collector index associated with this level. More...
 
double get_net_value () const
 Returns the total level value (or elapsed time) represented by this Collector, including all values in its child Collectors. More...
 
int get_num_children () const
 Returns the number of children of this Level/Collector. More...
 
double get_value_alone () const
 Returns the total level value (or elapsed time value) for this Collector, not including any values accounted for by its child Collectors. More...
 
void sort_children (const PStatClientData *client_data)
 Sorts the children of this view level into order as specified by the client's sort index. More...
 

Friends

class PStatView
 

Detailed Description

This is a single level value, or band of color, within a View.

It generally indicates either the elapsed time, or the "level" value, for a particular Collector within a given frame for a particular thread.

Definition at line 33 of file pStatViewLevel.h.

Member Function Documentation

◆ get_child()

const PStatViewLevel * PStatViewLevel::get_child ( int  n) const

◆ get_collector()

int PStatViewLevel::get_collector ( ) const
inline

Returns the Collector index associated with this level.

Definition at line 23 of file pStatViewLevel.I.

References get_value_alone().

Referenced by GtkStatsChartMenu::do_update(), WinStatsChartMenu::do_update(), TextMonitor::is_thread_safe(), and PStatStripChart::is_title_unknown().

◆ get_net_value()

double PStatViewLevel::get_net_value ( ) const

Returns the total level value (or elapsed time) represented by this Collector, including all values in its child Collectors.

Definition at line 31 of file pStatViewLevel.cxx.

Referenced by TextMonitor::is_thread_safe(), and PStatStripChart::is_title_unknown().

◆ get_num_children()

int PStatViewLevel::get_num_children ( ) const

Returns the number of children of this Level/Collector.

These are the Collectors whose value is considered to be part of the total value of this level's Collector.

Definition at line 80 of file pStatViewLevel.cxx.

References get_child().

Referenced by GtkStatsChartMenu::do_update(), WinStatsChartMenu::do_update(), TextMonitor::is_thread_safe(), PStatStripChart::is_title_unknown(), TextMonitor::new_data(), and sort_children().

◆ get_value_alone()

double PStatViewLevel::get_value_alone ( ) const
inline

Returns the total level value (or elapsed time value) for this Collector, not including any values accounted for by its child Collectors.

Definition at line 35 of file pStatViewLevel.I.

Referenced by get_collector(), and PStatStripChart::is_title_unknown().

◆ sort_children()

void PStatViewLevel::sort_children ( const PStatClientData client_data)

Sorts the children of this view level into order as specified by the client's sort index.

Definition at line 65 of file pStatViewLevel.cxx.

References get_num_children().

Referenced by PStatView::get_level().


The documentation for this class was generated from the following files: