[profiler] Add OS X tasks for development and release mode.

This commit is contained in:
Eloy Durán
2013-10-31 22:10:47 +01:00
committed by Watson
parent c181e10e92
commit 06fdd73853

View File

@@ -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