[前][次][番号順一覧][スレッド一覧]

ruby-changes:70085

From: Koichi <ko1@a...>
Date: Tue, 7 Dec 2021 02:03:53 +0900 (JST)
Subject: [ruby-changes:70085] 87664b5cc8 (master): add a NEWS entry about GC.total_time

https://git.ruby-lang.org/ruby.git/commit/?id=87664b5cc8

From 87664b5cc8f945ed0c5611b27179913585ec2326 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Mon, 6 Dec 2021 17:36:01 +0900
Subject: add a NEWS entry about GC.total_time

---
 NEWS.md | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/NEWS.md b/NEWS.md
index 5c020b3d242..4a8569e0834 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -163,6 +163,16 @@ Outstanding ones only. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L163
     * File.dirname now accepts an optional argument for the level to
       strip path components. [[Feature #12194]]
 
+* GC
+
+    * "GC.measure_total_time = true" enables the measurement of GC.
+      Measurement can introduce overhead. It is enabled by default.
+      GC.measure_total_time returns the current setting.
+      GC.stat[:time] or GC.stat(:time) returns measured time
+      in milli-soconds.
+
+    * GC.total_time returns measured time in nano-seconds.
+
 * Integer
 
     * Integer.try_convert is added. [[Feature #15211]]
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]