Class: Estackprof::CLI
- Inherits:
-
Thor
- Object
- Thor
- Estackprof::CLI
- Defined in:
- lib/estackprof/cli.rb
Instance Method Summary collapse
Instance Method Details
#flamegraph(*files) ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'lib/estackprof/cli.rb', line 40 def flamegraph(*files) puts Estackprof.flamegraph( files: files.empty? ? Dir.glob('./tmp/*.dump') : files ) exit rescue StandardError => e output_error_if_debug_mode(e) exit(-1) end |
#list(*files) ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/estackprof/cli.rb', line 28 def list(*files) puts Estackprof.list( files: files.empty? ? Dir.glob('./tmp/*.dump') : files, options: ) exit rescue StandardError => e output_error_if_debug_mode(e) exit(-1) end |
#top(*files) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/estackprof/cli.rb', line 14 def top(*files) puts Estackprof.top( files: files.empty? ? Dir.glob('./tmp/*.dump') : files, options: ) exit rescue StandardError => e output_error_if_debug_mode(e) exit(-1) end |
#version ⇒ Object
52 53 54 |
# File 'lib/estackprof/cli.rb', line 52 def version puts Estackprof::VERSION end |