Panda3D
pStatViewLevel.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file pStatViewLevel.h
10  * @author drose
11  * @date 2000-07-11
12  */
13 
14 #ifndef PSTATVIEWLEVEL_H
15 #define PSTATVIEWLEVEL_H
16 
17 #include "pandatoolbase.h"
18 
19 #include "pvector.h"
20 
21 class PStatClientData;
22 
23 /**
24  * This is a single level value, or band of color, within a View.
25  *
26  * It generally indicates either the elapsed time, or the "level" value, for a
27  * particular Collector within a given frame for a particular thread.
28  */
30 public:
31  INLINE int get_collector() const;
32  INLINE double get_value_alone() const;
33  double get_net_value() const;
34 
35  void sort_children(const PStatClientData *client_data);
36 
37  int get_num_children() const;
38  const PStatViewLevel *get_child(int n) const;
39 
40 private:
41  int _collector;
42  double _value_alone;
43  PStatViewLevel *_parent;
44 
46  Children _children;
47 
48  friend class PStatView;
49 };
50 
51 #include "pStatViewLevel.I"
52 
53 #endif
The data associated with a particular client, but not with any one particular frame or thread: the li...
This is a single level value, or band of color, within a View.
const PStatViewLevel * get_child(int n) const
Returns the nth child of this Level/Collector.
double get_net_value() const
Returns the total level value (or elapsed time) represented by this Collector, including all values i...
int get_num_children() const
Returns the number of children of this Level/Collector.
int get_collector() const
Returns the Collector index associated with this level.
void sort_children(const PStatClientData *client_data)
Sorts the children of this view level into order as specified by the client's sort index.
double get_value_alone() const
Returns the total level value (or elapsed time value) for this Collector, not including any values ac...
A View boils down the frame data to a linear list of times spent in a number of different Collectors,...
Definition: pStatView.h:31
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.