autotuner 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/Gemfile +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +55 -15
- data/lib/autotuner/configuration.rb +35 -0
- data/lib/{gc_tuner → autotuner}/data_structure/data_points.rb +9 -3
- data/lib/autotuner/gc_context.rb +31 -0
- data/lib/{gc_tuner → autotuner}/heuristic/base.rb +11 -3
- data/lib/autotuner/heuristic/gc_compact.rb +60 -0
- data/lib/autotuner/heuristic/heap_size_warmup.rb +130 -0
- data/lib/autotuner/heuristic/malloc.rb +121 -0
- data/lib/autotuner/heuristic/oldmalloc.rb +89 -0
- data/lib/autotuner/heuristic/remembered_wb_unprotected_objects.rb +103 -0
- data/lib/autotuner/heuristics.rb +12 -0
- data/lib/{gc_tuner → autotuner}/rack_plugin.rb +2 -2
- data/lib/autotuner/report/base.rb +37 -0
- data/lib/autotuner/report/multiple_environment_variables.rb +35 -0
- data/lib/autotuner/report/single_environment_variable.rb +29 -0
- data/lib/autotuner/report/string.rb +13 -0
- data/lib/autotuner/request_collector.rb +99 -0
- data/lib/{gc_tuner/request_collector.rb → autotuner/request_context.rb} +8 -17
- data/lib/autotuner/system_context.rb +21 -0
- data/lib/autotuner/version.rb +5 -0
- data/lib/autotuner.rb +29 -0
- metadata +25 -15
- data/lib/gc_tuner/configuration.rb +0 -20
- data/lib/gc_tuner/gc_context.rb +0 -17
- data/lib/gc_tuner/heuristic/size_pool_warmup.rb +0 -131
- data/lib/gc_tuner/heuristics.rb +0 -27
- data/lib/gc_tuner/version.rb +0 -5
- data/lib/gc_tuner.rb +0 -18
data/lib/gc_tuner/heuristics.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module GCTuner
|
4
|
-
module Heuristics
|
5
|
-
HEURISTICS = [
|
6
|
-
Heuristic::SizePoolWarmup,
|
7
|
-
].freeze
|
8
|
-
|
9
|
-
def heuristics
|
10
|
-
@heuristics ||= enabled_heuristics.map(&:new)
|
11
|
-
end
|
12
|
-
|
13
|
-
def tuning_messages
|
14
|
-
heuristics.map(&:tuning_message)
|
15
|
-
end
|
16
|
-
|
17
|
-
def debug_messages
|
18
|
-
heuristics.map(&:debug_message)
|
19
|
-
end
|
20
|
-
|
21
|
-
private
|
22
|
-
|
23
|
-
def enabled_heuristics
|
24
|
-
HEURISTICS.dup.keep_if(&:enabled?)
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
data/lib/gc_tuner/version.rb
DELETED
data/lib/gc_tuner.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "gc_tuner/data_structure/data_points"
|
4
|
-
|
5
|
-
require_relative "gc_tuner/heuristic/base"
|
6
|
-
require_relative "gc_tuner/heuristic/size_pool_warmup"
|
7
|
-
|
8
|
-
require_relative "gc_tuner/configuration"
|
9
|
-
require_relative "gc_tuner/gc_context"
|
10
|
-
require_relative "gc_tuner/heuristics"
|
11
|
-
require_relative "gc_tuner/rack_plugin"
|
12
|
-
require_relative "gc_tuner/request_collector"
|
13
|
-
require_relative "gc_tuner/version"
|
14
|
-
|
15
|
-
module GCTuner
|
16
|
-
extend Configuration
|
17
|
-
extend Heuristics
|
18
|
-
end
|