/
githubmirror
/
jekyll
Обзор
Документация
Войти
/
githubmirror
/
jekyll
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.github/workflows/actions/memprof.rb
14 строк
457 B
Ashwin Maroli
Profile allocations from `lib/jekyll.rb` as well
07 окт 2020, 16:17
07 окт 2020, 16:17
56e15c5
Код
Авторство
О чём код?
# frozen_string_literal: true require 'jekyll' require 'memory_profiler' MemoryProfiler.report(allow_files: ['lib/jekyll/', 'lib/jekyll.rb']) 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)