[profiler] Pass arguments to app on launch.

This commit is contained in:
Eloy Durán
2013-10-31 17:50:47 +01:00
parent 61e9a65534
commit 19e9bddef3
3 changed files with 6 additions and 7 deletions

View File

@@ -278,14 +278,14 @@ EOS
end
# TODO
# * add launch args and env vars from user
# * add env vars from user
# * add optional Instruments template to use?
def profiler_config_plist(platform)
def profiler_config_plist(platform, args)
working_dir = File.expand_path(versionized_build_dir(platform))
{
'CFBundleIdentifier' => identifier,
'absolutePathOfLaunchable' => File.expand_path(app_bundle_executable(platform)),
'argumentEntries' => '',
'argumentEntries' => (args or ''),
'workingDirectory' => working_dir,
'workspacePath' => '', # Normally: /path/to/Project.xcodeproj/project.xcworkspace
'environmentEntries' => {