Module: Corkscrews

Defined in:
lib/corkscrews.rb,
lib/corkscrews/cli.rb,
lib/corkscrews/rack.rb,
lib/corkscrews/native.rb,
lib/corkscrews/report.rb,
lib/corkscrews/version.rb,
lib/corkscrews/analysis.rb,
lib/corkscrews/recorder.rb,
lib/corkscrews/validate.rb,
lib/corkscrews/controller.rb,
lib/corkscrews/primitives.rb,
lib/corkscrews/statistics.rb,
lib/corkscrews/time_source.rb,
lib/corkscrews/firefox_profile.rb,
ext/corkscrews/corkscrews.c

Defined Under Namespace

Modules: Delay, Hooks, Monitor, Native, NativeExtension, Primitives, Record, Sampler, Statistics, TimeSource, Validate Classes: Analysis, CLI, Controller, Error, FirefoxProfile, Rack, Recorder, Report

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.latency_begin(name = :default) ⇒ Object



15
16
17
18
# File 'lib/corkscrews.rb', line 15

def latency_begin(name = :default)
  Recorder.current&.latency_begin(name)
  nil
end

.latency_end(name = :default) ⇒ Object



20
21
22
23
# File 'lib/corkscrews.rb', line 20

def latency_end(name = :default)
  Recorder.current&.latency_end(name)
  nil
end

.progress(name = :default) ⇒ Object



10
11
12
13
# File 'lib/corkscrews.rb', line 10

def progress(name = :default)
  Recorder.current&.progress(name)
  nil
end

.record_wait(kind, duration_ns) ⇒ Object



25
26
27
28
# File 'lib/corkscrews.rb', line 25

def record_wait(kind, duration_ns)
  Recorder.current&.record_wait(kind, duration_ns)
  nil
end

.start!(output:, run_id: nil, repeat_index: nil, sample_period_ms: nil) ⇒ Object



30
31
32
33
34
35
36
37
# File 'lib/corkscrews.rb', line 30

def start!(output:, run_id: nil, repeat_index: nil, sample_period_ms: nil)
  Recorder.start!(
    output: output,
    run_id: run_id,
    repeat_index: repeat_index,
    sample_period_ms: sample_period_ms
  )
end

.stop!Object



39
40
41
# File 'lib/corkscrews.rb', line 39

def stop!
  Recorder.stop!
end