326 void sample_and_collect(ZStatSamplerHistory* history) const; 327 bool should_print(LogTargetHandle log) const; 328 void print(LogTargetHandle log, const ZStatSamplerHistory* history) const; 329 330 protected: 331 virtual void run_service(); 332 virtual void stop_service(); 333 334 public: 335 ZStat(); 336 }; 337 338 // 339 // Stat cycle 340 // 341 class ZStatCycle : public AllStatic { 342 private: 343 static uint64_t _ncycles; 344 static Ticks _start_of_last; 345 static Ticks _end_of_last; 346 static NumberSeq _duration; 347 348 public: 349 static void at_start(); 350 static void at_end(double boost_factor); 351 352 static uint64_t ncycles(); 353 static const AbsSeq& duration(); 354 static double time_since_last(); 355 }; 356 357 // 358 // Stat load 359 // 360 class ZStatLoad : public AllStatic { 361 public: 362 static void print(); 363 }; 364 365 // 366 // Stat mark 367 // 368 class ZStatMark : public AllStatic { 369 private: 370 static size_t _nstripes; 371 static size_t _nproactiveflush; 372 static size_t _nterminateflush; 373 static size_t _ntrycomplete; | 326 void sample_and_collect(ZStatSamplerHistory* history) const; 327 bool should_print(LogTargetHandle log) const; 328 void print(LogTargetHandle log, const ZStatSamplerHistory* history) const; 329 330 protected: 331 virtual void run_service(); 332 virtual void stop_service(); 333 334 public: 335 ZStat(); 336 }; 337 338 // 339 // Stat cycle 340 // 341 class ZStatCycle : public AllStatic { 342 private: 343 static uint64_t _ncycles; 344 static Ticks _start_of_last; 345 static Ticks _end_of_last; 346 static NumberSeq _normalized_duration; 347 348 public: 349 static void at_start(); 350 static void at_end(double boost_factor); 351 352 static uint64_t ncycles(); 353 static const AbsSeq& normalized_duration(); 354 static double time_since_last(); 355 }; 356 357 // 358 // Stat load 359 // 360 class ZStatLoad : public AllStatic { 361 public: 362 static void print(); 363 }; 364 365 // 366 // Stat mark 367 // 368 class ZStatMark : public AllStatic { 369 private: 370 static size_t _nstripes; 371 static size_t _nproactiveflush; 372 static size_t _nterminateflush; 373 static size_t _ntrycomplete; |