Add workflow to build and profile third-party repo (#8398)

Merge pull request 8398
This commit is contained in:
Ashwin Maroli
2020-09-17 19:23:35 +05:30
committed by GitHub
parent 94930c5a58
commit c066999fa0
2 changed files with 62 additions and 0 deletions

14
.github/workflows/actions/memprof.rb vendored Normal file
View File

@@ -0,0 +1,14 @@
# frozen_string_literal: true
require 'jekyll'
require 'memory_profiler'
MemoryProfiler.report(allow_files: 'lib/jekyll/') do
Jekyll::PluginManager.require_from_bundler
Jekyll::Commands::Build.process({
"source" => File.expand_path(ARGV[0]),
"destination" => File.expand_path("#{ARGV[0]}/_site"),
"disable_disk_cache" => true,
})
puts ''
end.pretty_print(scale_bytes: true, normalize_paths: true)