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
60 61 62 63 64 65 66 |
# File 'lib/awfy/cli.rb', line 60 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
44 45 46 47 48 49 |
# File 'lib/awfy/cli.rb', line 44 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
39 40 41 |
# File 'lib/awfy/cli.rb', line 39 def list(group = nil) run_pref_test(group) { list_group(_1) } end |
#memory(group = nil, report = nil, test = nil) ⇒ Object
52 53 54 55 56 57 |
# File 'lib/awfy/cli.rb', line 52 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
71 72 73 74 75 76 77 |
# File 'lib/awfy/cli.rb', line 71 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 |