@@ -265,40 +265,64 @@ class EXPCL_PANDA_PSTATCLIENT PStatClient {
265265 PStatClient () { }
266266 ~PStatClient () { }
267267
268- PUBLISHED:
269- std::string get_collector_name (int index) const { return std::string (); }
270- std::string get_collector_fullname (int index) const { return std::string (); }
268+ void set_client_name (const std::string &name);
269+ std::string get_client_name () const ;
270+ void set_max_rate (double rate);
271+ double get_max_rate () const ;
272+
273+ PStatCollector get_collector (int index) const ;
274+ std::string get_collector_name (int index) const ;
275+ std::string get_collector_fullname (int index) const ;
276+
277+ INLINE int get_num_threads () const { return 0 ; }
278+ PStatThread get_thread (int index) const ;
279+ INLINE std::string get_thread_name (int index) const { return " " ; }
280+ INLINE std::string get_thread_sync_name (int index) const { return " " ; }
281+ INLINE PT (Thread) get_thread_object(int index) const { return nullptr ; }
271282
272283 PStatThread get_main_thread () const ;
273284 PStatThread get_current_thread () const ;
274285
286+ double get_real_time () const ;
287+
288+ PUBLISHED:
275289 INLINE static bool connect (const std::string & = std::string(), int = -1) { return false ; }
276290 INLINE static void disconnect () { }
277291 INLINE static bool is_connected () { return false ; }
278292 INLINE static void resume_after_pause () { }
279293
280- INLINE static void main_tick () { }
281- INLINE static void thread_tick (const std::string &) { }
294+ static void main_tick ();
295+ static void thread_tick (const std::string &);
296+
297+ public:
298+ void client_main_tick ();
299+ void client_thread_tick (const std::string &sync_name);
300+ bool client_connect (std::string hostname, int port);
301+ void client_disconnect ();
302+ bool client_is_connected () const ;
303+
304+ void client_resume_after_pause ();
282305
283306 static PStatClient *get_global_pstats ();
284307
285308private:
286309 // These are used by inline PStatCollector methods, so they need to be
287310 // stubbed out for ABI compatibility.
288311 PStatCollector make_collector_with_relname (int parent_index, std::string relname);
312+ PStatThread make_thread (Thread *thread);
289313
290- bool is_active (int collector_index, int thread_index) const { return false ; }
291- bool is_started (int collector_index, int thread_index) const { return false ; }
314+ bool is_active (int collector_index, int thread_index) const ;
315+ bool is_started (int collector_index, int thread_index) const ;
292316
293317 void start (int collector_index, int thread_index);
294318 void start (int collector_index, int thread_index, double as_of);
295319 void stop (int collector_index, int thread_index);
296320 void stop (int collector_index, int thread_index, double as_of);
297321
298- void clear_level (int collector_index, int thread_index) { }
299- void set_level (int collector_index, int thread_index, double level) { }
300- void add_level (int collector_index, int thread_index, double increment) { }
301- double get_level (int collector_index, int thread_index) const { return 0.0 ; }
322+ void clear_level (int collector_index, int thread_index);
323+ void set_level (int collector_index, int thread_index, double level);
324+ void add_level (int collector_index, int thread_index, double increment);
325+ double get_level (int collector_index, int thread_index) const ;
302326};
303327
304328#endif // DO_PSTATS
0 commit comments