README.md in ddmemoize-1.0.0a3 vs README.md in ddmemoize-1.0.0rc1
- old
+ new
@@ -28,11 +28,11 @@
Features:
* Supports memoizing functions on frozen objects
* Releases memoized values when needed in order to reduce memory pressure
-* Optionally records telemetry
+* Optionally records metrics
## Installation
Add this line to your application's Gemfile:
@@ -79,17 +79,17 @@
end
```
Do not memoize functions that depend on mutable state.
-### Telemetry
+### Metrics
-To activate telemetry, call `DDMemoize.enable_telemetry` after requiring `ddmemoize`.
+To activate metrics, call `DDMemoize.enable_metrics` after requiring `ddmemoize`.
-To print the collected metrics, call `DDMemoize.print_telemetry`:
+To print the collected metrics, call `DDMemoize.print_metrics`:
```ruby
-DDMemoize.print_telemetry
+DDMemoize.print_metrics
```
```
memoization │ hit miss %
────────────┼───────────────────