Class: Awfy::CLI
Constant Summary collapse
- CONTROL_MARKER =
"[c]"
- TEST_MARKER =
"[*]"
Class Method Summary collapse
Instance Method Summary collapse
- #flamegraph(group, report, test) ⇒ Object
- #ips(group = nil, report = nil, test = nil) ⇒ Object
- #list(group = nil) ⇒ Object
- #memory(group = nil, report = nil, test = nil) ⇒ Object
- #profile(group = nil, report = nil, test = nil) ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
20 |
# File 'lib/awfy/cli.rb', line 20 def self.exit_on_failure? = true |
Instance Method Details
#flamegraph(group, report, test) ⇒ Object
61 62 63 64 65 66 67 |
# File 'lib/awfy/cli.rb', line 61 def flamegraph(group, report, test) say "Creating flamegraph for:" say "> #{[group, report, test].join("/")}..." configure_benchmark_run run_group(group) { run_flamegraph(_1, report, test) } end |
#ips(group = nil, report = nil, test = nil) ⇒ Object
45 46 47 48 49 50 |
# File 'lib/awfy/cli.rb', line 45 def ips(group = nil, report = nil, test = nil) say "Running IPS for:" say "> #{requested_tests(group, report, test)}..." run_pref_test(group) { run_ips(_1, report, test) } end |
#list(group = nil) ⇒ Object
40 41 42 |
# File 'lib/awfy/cli.rb', line 40 def list(group = nil) run_pref_test(group) { list_group(_1) } end |
#memory(group = nil, report = nil, test = nil) ⇒ Object
53 54 55 56 57 58 |
# File 'lib/awfy/cli.rb', line 53 def memory(group = nil, report = nil, test = nil) say "Running memory profiling for:" say "> #{requested_tests(group, report, test)}..." run_pref_test(group) { run_memory(_1, report, test) } end |
#profile(group = nil, report = nil, test = nil) ⇒ Object
72 73 74 75 76 77 78 |
# File 'lib/awfy/cli.rb', line 72 def profile(group = nil, report = nil, test = nil) say "Run profiling of:" say "> #{requested_tests(group, report, test)}..." configure_benchmark_run run_group(group) { run_profiling(_1, report, test) } end |