From 7497a555702f80e92394ee48d01d7ef600687322 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 10 Aug 2020 12:51:00 -0700 Subject: [PATCH 1/3] Add profiling gems These are useful for profiling the app Signed-off-by: Tim Smith --- .expeditor/run_windows_tests.ps1 | 2 +- Gemfile | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.expeditor/run_windows_tests.ps1 b/.expeditor/run_windows_tests.ps1 index c46252b74..6270237a1 100755 --- a/.expeditor/run_windows_tests.ps1 +++ b/.expeditor/run_windows_tests.ps1 @@ -3,7 +3,7 @@ $ErrorActionPreference="stop" Write-Host "--- bundle install" bundle config --local path vendor/bundle -bundle config --local set without 'docs development' +bundle config --local set without 'docs development profile' bundle install --jobs=7 --retry=3 Write-Host "+++ bundle exec task" diff --git a/Gemfile b/Gemfile index 877706505..6ccdf655d 100644 --- a/Gemfile +++ b/Gemfile @@ -28,3 +28,8 @@ group :development do gem "pry-stack_explorer", "~> 0.4.0" gem "rb-readline" end + +group :profile do + gem "stackprof" + gem "stackprof-webnav" +end From bcb14963d3c9734a5c8b481131e17871fe468bde Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 10 Aug 2020 14:49:10 -0700 Subject: [PATCH 2/3] Add memory_profile as well Signed-off-by: Tim Smith --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index 6ccdf655d..b35bf34ed 100644 --- a/Gemfile +++ b/Gemfile @@ -32,4 +32,5 @@ end group :profile do gem "stackprof" gem "stackprof-webnav" + gem "memory_profiler" end From 79954e8e493fd196810d79d6f3cb37050057c004 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 10 Aug 2020 15:26:30 -0700 Subject: [PATCH 3/3] Fix without command Signed-off-by: Tim Smith --- .expeditor/run_windows_tests.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.expeditor/run_windows_tests.ps1 b/.expeditor/run_windows_tests.ps1 index 6270237a1..59276f23d 100755 --- a/.expeditor/run_windows_tests.ps1 +++ b/.expeditor/run_windows_tests.ps1 @@ -3,8 +3,7 @@ $ErrorActionPreference="stop" Write-Host "--- bundle install" bundle config --local path vendor/bundle -bundle config --local set without 'docs development profile' -bundle install --jobs=7 --retry=3 +bundle install --jobs=7 --retry=3 --without docs development profile Write-Host "+++ bundle exec task" bundle exec $args