mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-12 09:09:02 +08:00
[profiler] Add OS X tasks for development and release mode.
This commit is contained in:
@@ -95,9 +95,12 @@ task :static do
|
||||
App.build('MacOSX', :static => true)
|
||||
end
|
||||
|
||||
# TODO change to singular build task for development and release.
|
||||
desc "Run a build through Instruments"
|
||||
task :profile => 'build:development' do
|
||||
plist = App.config.profiler_config_plist('MacOSX', "-NSDocumentRevisionsDebugMode YES #{ENV['args']}")
|
||||
App.profile('MacOSX', plist)
|
||||
namespace :profile do
|
||||
%w{ development release }.each do |mode|
|
||||
desc "Run a #{mode} build through Instruments"
|
||||
task mode => "build:#{mode}" do
|
||||
plist = App.config.profiler_config_plist('MacOSX', "-NSDocumentRevisionsDebugMode YES #{ENV['args']}")
|
||||
App.profile('MacOSX', plist)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user