class

Bindgen::Statistics

Inherits Reference < Object

Simple collector of run-time statistics.

Constants

DEPTH_MULTIPLIER = 2
HEAP_COLUMN_SIZE = 8
JUSTIFY_OFFSET = 2

Constructors

Instance methods

after

Garbage collector statistics after the measures. Only available after calling #finish!

Source
after?

Garbage collector statistics after the measures. Only available after calling #finish!

Source
before

Garbage collector statistics before any measures.

Source
finish!

Finishes the statistics collection.

Source
heap_size_change

Returns how much the heap size has changed during the measurements

Source
measure(stage_name : String, &)

Measures execution of the given block. Returns the result of the block. The measured data is put into #stages.

Source
stages

Collected stages

Source
to_s(depth : Int32) : String

Returns a formatted human-readable string.

Source
to_s(io, depth = 0, justification = nil)

Writes formatted human-readable data into io.

Source
total_duration

Returns the total duration of all measured steps. The timings between the stages is not recorded, and is thus excluded from the total duration.

Source

Nested types