Show Table of Contents
第9章 $fh.stats
一時統計カウンターとタイマーを利用します。これらは Studio でグラフとして表示できます。
9.1. 例
// Increment a counter. // The name for the counter you want to increment. // If this doesn't exist, it is created, and starts at 0. var counter = 'my_counter'; $fh.stats.inc(counter); // Decrement a counter $fh.stats.dec(counter); // Record a timer value // The name for the timer you want to record a value for. // If it doesn't exist, it is created. var timer_name = 'my_timer'; // Timing in milliseconds of the interval you wish to record // (for example, time difference between a timer start and end) var time_in_ms = 500; $fh.stats.timing(timer_name, time_in_ms);

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.