class Instrumentality::Profile::Custom
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
Instrumentality::Profile::new
# File lib/instrumentality/command/profile/custom.rb, line 23 def initialize(argv) super @script = argv.shift_argument end
options()
click to toggle source
Calls superclass method
# File lib/instrumentality/command/profile/custom.rb, line 10 def self.options shared_options.concat([ ]).concat(super) end
Public Instance Methods
run()
click to toggle source
# File lib/instrumentality/command/profile/custom.rb, line 33 def run config = OpenStruct.new({'script' => @script, 'process' => @process, 'workspace' => @workspace, 'project' => @project, 'scheme' => @scheme, 'server_port' => @server_port, 'interactive' => @interactive, 'experimental' => false}) profiler = Profiler.new(config, @verbose) profiler.profile end
validate!()
click to toggle source
Calls superclass method
Instrumentality::Profile#validate!
# File lib/instrumentality/command/profile/custom.rb, line 28 def validate! super validate_shared_arguments! end