Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
rename 'instruments-without-delay' to just 'instruments'
Browse files Browse the repository at this point in the history
This way people can just manipulate their PATH to make their stuff use
this script instead of /usr/bin/instruments
  • Loading branch information
fpotter committed Mar 1, 2013
1 parent ac83e4e commit 6f7c408
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Expand Up @@ -11,15 +11,15 @@ xcodebuild \
-configuration Release \
CONFIGURATION_BUILD_DIR=$BUILD_OUTPUT_DIR

cp instruments-without-delay $BUILD_OUTPUT_DIR/instruments-without-delay
cp instruments $BUILD_OUTPUT_DIR/instruments

if [[ $1 == "test" ]]; then
TEST_JS=$(echo `pwd`/test.js)
XCODE_PATH=$(xcode-select --print-path)

OUTPUT_DIR=$(/usr/bin/mktemp -d -t trace)
pushd $OUTPUT_DIR
$BUILD_OUTPUT_DIR/instruments-without-delay \
$BUILD_OUTPUT_DIR/instruments \
-t "$XCODE_PATH"/../Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate \
$BUILD_OUTPUT_DIR/TestApp.app \
-e UIASCRIPT $TEST_JS
Expand Down
3 changes: 3 additions & 0 deletions instruments-without-delay → instruments
@@ -1,4 +1,7 @@
#!/bin/sh
#
# Use this script in place of /usr/bin/instruments and the
# 1 second delay will go away.

LIB_PATH=$(cd `dirname $0`; pwd)
XCODE_PATH=$(xcode-select --print-path)
Expand Down

0 comments on commit 6f7c408

Please sign in to comment.