class Instrumentality::Profile::FileActivity

Public Class Methods

new(argv) click to toggle source
Calls superclass method Instrumentality::Profile::new
# File lib/instrumentality/command/profile/file_activity.rb, line 23
def initialize(argv)
  @experimental = argv.flag?('experimental', false)
  super
end
options() click to toggle source
Calls superclass method
# File lib/instrumentality/command/profile/file_activity.rb, line 10
def self.options
  shared_options.concat([
    ['--experimental', "Don't use it if you don't know what it does"],
  ]).concat(super)
end

Public Instance Methods

run() click to toggle source
# File lib/instrumentality/command/profile/file_activity.rb, line 33
def run
  config = OpenStruct.new({'script' => Constants::FILE_ACTIVITY_SCRIPT,
                           'process' => @process,
                           'workspace' => @workspace,
                           'project' => @project,
                           'scheme' => @scheme,
                           'server_port' => @server_port,
                           'interactive' => @interactive,
                           'experimental' => @experimental})
  profiler = Profiler.new(config, @verbose)
  profiler.profile
end
validate!() click to toggle source
Calls superclass method Instrumentality::Profile#validate!
# File lib/instrumentality/command/profile/file_activity.rb, line 28
def validate!
  super
  validate_shared_arguments!
end