Skip to content

Commit

Permalink
Allow running dev:profile_memory task on Windows
Browse files Browse the repository at this point in the history
PATH_SEPARATOR on Windows is a semicolon (;) instead of the colon (:)
Therefore, using File::PATH_SEPARATOR constant allows running the task
across multiple platforms
  • Loading branch information
ashmaroli authored and gettalong committed May 25, 2019
1 parent 9d81dfb commit 2ff9d43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -255,7 +255,8 @@ namespace :dev do

desc "Profile memory usage while running the tests"
task :profile_memory do
ruby '-Ilib:test:benchmark -r memory_profiler_preload test/test_files.rb'
load_paths = %w[lib test benchmark].join(File::PATH_SEPARATOR)
ruby "-I #{load_paths} -r memory_profiler_preload test/test_files.rb"
end
end

Expand Down

0 comments on commit 2ff9d43

Please sign in to comment.