14 #ifndef PSTATCOLLECTOR_H 15 #define PSTATCOLLECTOR_H 56 const std::string &name);
61 INLINE
bool is_valid()
const;
62 INLINE std::string get_name()
const;
63 INLINE std::string get_fullname()
const;
64 INLINE
void output(std::ostream &out)
const;
66 INLINE
bool is_active();
67 INLINE
bool is_started();
71 INLINE
void clear_level();
72 INLINE
void set_level(
double level);
73 INLINE
void add_level(
double increment);
74 INLINE
void sub_level(
double decrement);
75 INLINE
void add_level_now(
double increment);
76 INLINE
void sub_level_now(
double decrement);
77 INLINE
void flush_level();
78 INLINE
double get_level();
80 INLINE
void clear_thread_level();
81 INLINE
void set_thread_level(
double level);
82 INLINE
void add_thread_level(
double increment);
83 INLINE
void sub_thread_level(
double decrement);
84 INLINE
double get_thread_level();
89 INLINE
void start(
const PStatThread &thread,
double as_of);
91 INLINE
void stop(
const PStatThread &thread,
double as_of);
94 INLINE
void set_level(
const PStatThread &thread,
double level);
95 INLINE
void add_level(
const PStatThread &thread,
double increment);
96 INLINE
void sub_level(
const PStatThread &thread,
double decrement);
99 INLINE
int get_index()
const;
116 const std::string &name);
118 INLINE
bool is_active() {
return false; }
119 INLINE
bool is_started() {
return false; }
120 INLINE
void start() { }
121 INLINE
void stop() { }
123 INLINE
void clear_level() { }
124 INLINE
void set_level(
double) { }
125 INLINE
void add_level(
double) { }
126 INLINE
void sub_level(
double) { }
127 INLINE
void add_level_now(
double) { }
128 INLINE
void sub_level_now(
double) { }
129 INLINE
void flush_level() { }
130 INLINE
double get_level() {
return 0.0; }
132 INLINE
bool is_active(
const PStatThread &) {
return false; }
139 INLINE
void set_level(
const PStatThread &,
double) { }
140 INLINE
void add_level(
const PStatThread &,
double) { }
141 INLINE
void sub_level(
const PStatThread &,
double) { }
142 INLINE
double get_level(
const PStatThread &) {
return 0.0; }
144 INLINE
int get_index()
const {
return 0; }
151 inline std::ostream &operator << (std::ostream &out,
const PStatCollector &pcol) {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A lightweight class that represents a single element that may be timed and/or counted via stats.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A lightweight class that represents a single thread of execution to PStats.
A thread; that is, a lightweight process.
Manages the communications to report statistics via a network connection to a remote PStatServer.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.