14#ifndef PSTATCOLLECTOR_H
15#define PSTATCOLLECTOR_H
54 const std::string &name);
59 INLINE
bool is_valid()
const;
60 INLINE std::string get_name()
const;
61 INLINE std::string get_fullname()
const;
62 INLINE
void output(std::ostream &out)
const;
64 INLINE
bool is_active();
65 INLINE
bool is_started();
69 INLINE
void clear_level();
70 INLINE
void set_level(
double level);
71 INLINE
void add_level(
double increment);
72 INLINE
void sub_level(
double decrement);
73 INLINE
void add_level_now(
double increment);
74 INLINE
void sub_level_now(
double decrement);
75 INLINE
void flush_level();
76 INLINE
double get_level();
78 INLINE
void clear_thread_level();
79 INLINE
void set_thread_level(
double level);
80 INLINE
void add_thread_level(
double increment);
81 INLINE
void sub_thread_level(
double decrement);
82 INLINE
double get_thread_level();
87 INLINE
void start(
const PStatThread &thread,
double as_of);
89 INLINE
void stop(
const PStatThread &thread,
double as_of);
92 INLINE
void set_level(
const PStatThread &thread,
double level);
93 INLINE
void add_level(
const PStatThread &thread,
double increment);
94 INLINE
void sub_level(
const PStatThread &thread,
double decrement);
97 INLINE
int get_index()
const;
114 const std::string &name);
116 INLINE
bool is_active() {
return false; }
117 INLINE
bool is_started() {
return false; }
118 INLINE
void start() { }
119 INLINE
void stop() { }
121 INLINE
void clear_level() { }
122 INLINE
void set_level(
double) { }
123 INLINE
void add_level(
double) { }
124 INLINE
void sub_level(
double) { }
125 INLINE
void add_level_now(
double) { }
126 INLINE
void sub_level_now(
double) { }
127 INLINE
void flush_level() { }
128 INLINE
double get_level() {
return 0.0; }
130 INLINE
bool is_active(
const PStatThread &) {
return false; }
137 INLINE
void set_level(
const PStatThread &,
double) { }
138 INLINE
void add_level(
const PStatThread &,
double) { }
139 INLINE
void sub_level(
const PStatThread &,
double) { }
140 INLINE
double get_level(
const PStatThread &) {
return 0.0; }
142 INLINE
int get_index()
const {
return 0; }
149inline std::ostream &operator << (std::ostream &out,
const PStatCollector &pcol) {
Manages the communications to report statistics via a network connection to a remote PStatServer.
A lightweight class that represents a single element that may be timed and/or counted via stats.
A lightweight class that represents a single thread of execution to PStats.
A thread; that is, a lightweight process.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.