@@ -6,11 +6,11 @@ if ! [ -x "$(command -v bazel)" ]; then
6
6
fi
7
7
8
8
if [[ -z " $GRADLE_PROFILER " ]]; then
9
- if ! [ -d " gradle-profiler" ]
9
+ if ! [ -d " ../ gradle-profiler" ]
10
10
then
11
11
echo " Installing Gradle profiler.."
12
- git clone https://github.com/sunyal/gradle-profiler.git
13
- cd gradle-profiler || exit
12
+ git clone https://github.com/sunyal/gradle-profiler.git ../gradle-profiler
13
+ cd ../ gradle-profiler || exit
14
14
15
15
# gradle dist in repo points to an obsolete snapshot.
16
16
sed -i -e ' s/4.8-20180417000132+0000/4.8/g' gradle/wrapper/gradle-wrapper.properties
@@ -20,7 +20,7 @@ if [[ -z "$GRADLE_PROFILER" ]]; then
20
20
echo Grade Profile installed successful! Please restart benchmark.
21
21
exit 0
22
22
fi
23
- GRADLE_PROFILER=./gradle-profiler/build/install/gradle-profiler/bin/gradle-profiler
23
+ GRADLE_PROFILER=.. /gradle-profiler/build/install/gradle-profiler/bin/gradle-profiler
24
24
else
25
25
if ! [ -e " $GRADLE_PROFILER " ]
26
26
then
30
30
fi
31
31
32
32
BASEDIR=$( dirname " $0 " )
33
- GRADLE_VERSION=6.7
33
+ GRADLE_VERSION=6.7.1
34
34
35
35
timestampDir=$( date +" %Y%m%d_%H%M%S" )
36
- outputDir=output/$timestampDir
36
+ outputDir=../ output/$timestampDir
37
37
iterations=2
38
38
warmups=1
39
39
@@ -45,7 +45,7 @@ mkdir -p "$outputDir"/
45
45
$GRADLE_PROFILER --benchmark --gradle-version $GRADLE_VERSION $2 --iterations=$iterations --warmups=$warmups --output-dir=" $outputDir " /buck --scenario-file " $BASEDIR /performance.scenarios" --project-dir . --buck
46
46
47
47
# shellcheck disable=SC2086
48
- $GRADLE_PROFILER --benchmark --gradle-version $GRADLE_VERSION $2 --iterations=$iterations --warmups=$warmups --output-dir=" $outputDir " /gradle --scenario-file " $BASEDIR /performance.scenarios" --project-dir .
48
+ $GRADLE_PROFILER --benchmark --gradle-version $GRADLE_VERSION $2 --iterations=$iterations --warmups=$warmups --output-dir=" $outputDir " /gradle --scenario-file " $BASEDIR /performance.scenarios" --project-dir . --gradle-user-home ../gradle-user-home
49
49
50
50
# shellcheck disable=SC2086
51
51
$GRADLE_PROFILER --benchmark --gradle-version $GRADLE_VERSION $2 --iterations=$iterations --warmups=$warmups --output-dir=" $outputDir " /bazel --scenario-file " $BASEDIR /performance.scenarios" --project-dir . --bazel
0 commit comments