Skip to content

Commit

Permalink
speeddown
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1nksm committed Jul 21, 2019
1 parent aa8806d commit 1aba774
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/core/dsl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,11 @@ shellspec_abort() {

if [ "$SHELLSPEC_PROFILER" ]; then
shellspec_profile_start() {
"$SHELLSPEC_SLEEP" 0
"$SHELLSPEC_SLEEP" 0.01
shellspec_signal -USR1 "$SHELLSPEC_PROFILER_PID" ||:
}
shellspec_profile_end() {
"$SHELLSPEC_SLEEP" 0
"$SHELLSPEC_SLEEP" 0.01
shellspec_signal -USR1 "$SHELLSPEC_PROFILER_PID" ||:
}
else
Expand Down
1 change: 0 additions & 1 deletion libexec/shellspec-profiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ handler() {

terminate() {
PATH=$ORIGPATH
sleep 1
i=0 start='' end=''
while [ "$i" -lt "$index" ]; do
eval "start=\$counter${i} end=\${counter$(($i + 1)):-}"
Expand Down
1 change: 0 additions & 1 deletion libexec/shellspec-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export SHELLSPEC_PROFILER_PID=''
start_profiler() {
[ "$SHELLSPEC_PROFILER" ] || return 0
$SHELLSPEC_SHELL "$SHELLSPEC_LIBEXEC/shellspec-profiler.sh" &
sleep 1
read_pid_file SHELLSPEC_PROFILER_PID "$SHELLSPEC_TMPBASE/profiler.pid" 1000
[ "$SHELLSPEC_PROFILER_PID" ] && return 0
warn "Failed to activate profiler (trap not supported?)"
Expand Down

0 comments on commit 1aba774

Please sign in to comment.