Panda3D
Loading...
Searching...
No Matches
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
21class 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 */
30public:
31 INLINE int get_collector() const;
32 INLINE double get_value_alone() const;
33 double get_net_value() const;
34 INLINE int get_count() const;
35
36 void sort_children(const PStatClientData *client_data);
37
38 int get_num_children() const;
39 const PStatViewLevel *get_child(int n) const;
40
41private:
42 int _collector;
43 int _count = 0;
44 double _value_alone;
45 PStatViewLevel *_parent;
46
48 Children _children;
49
50 friend class PStatView;
51};
52
53#include "pStatViewLevel.I"
54
55#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.
int get_count() const
Returns the number of start/stop pairs for this collector.
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
This is our own Panda specialization on the default STL vector.
Definition pvector.h:42
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.