Methods
- B
-
- M
-
- N
-
- P
-
- W
-
Included Modules
Attributes
Class Public methods
Source: show
| on GitHub
253: def initialize
254: @total = 0
255: end
Instance Public methods
Source: show
| on GitHub
261: def benchmark
262: with_gc_stats do
263: before = measure
264: yield
265: @total += (measure - before)
266: end
267: end
Source: show
| on GitHub
77: def measure_mode
78: self.class::Mode
79: end
Source: show
| on GitHub
257: def name
258: @name ||= self.class.name.demodulize.underscore
259: end
overridden by each implementation
Source: show
| on GitHub
81: def profile
82: RubyProf.resume
83: yield
84: ensure
85: RubyProf.pause
86: end
Instance Protected methods
Source: show
| on GitHub
9: def with_gc_stats
10: GC::Profiler.enable
11: GC.start
12: yield
13: ensure
14: GC::Profiler.disable
15: end
Source: show
| on GitHub
74: def with_gc_stats
75: @loopback = Rubinius::Agent.loopback
76: GC.run(true)
77: yield
78: end
Source: show
| on GitHub
71: def with_gc_stats
72: ManagementFactory.memory_mx_bean.gc
73: yield
74: end
overridden by each implementation
Source: show
| on GitHub
9: def with_gc_stats
10: GC.enable_stats
11: GC.start
12: yield
13: ensure
14: GC.disable_stats
15: end
overridden by each implementation