devformance 0.1.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.
Files changed (117) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +205 -0
  3. data/app/assets/builds/tailwind.css +2 -0
  4. data/app/assets/images/icon.png +0 -0
  5. data/app/assets/images/icon.svg +68 -0
  6. data/app/assets/stylesheets/devmetrics/dashboard.css +476 -0
  7. data/app/assets/stylesheets/devmetrics_live/application.css +10 -0
  8. data/app/assets/tailwind/application.css +1 -0
  9. data/app/channels/application_cable/channel.rb +4 -0
  10. data/app/channels/application_cable/connection.rb +4 -0
  11. data/app/channels/devformance/metrics_channel.rb +25 -0
  12. data/app/controllers/application_controller.rb +4 -0
  13. data/app/controllers/devformance/application_controller.rb +19 -0
  14. data/app/controllers/devformance/icons_controller.rb +21 -0
  15. data/app/controllers/devformance/metrics_controller.rb +41 -0
  16. data/app/controllers/devformance/playground_controller.rb +89 -0
  17. data/app/helpers/application_helper.rb +9 -0
  18. data/app/helpers/metrics_helper.rb +2 -0
  19. data/app/helpers/playground_helper.rb +2 -0
  20. data/app/javascript/devformance/channels/consumer.js +2 -0
  21. data/app/javascript/devformance/channels/index.js +1 -0
  22. data/app/javascript/devformance/controllers/application.js +9 -0
  23. data/app/javascript/devformance/controllers/hello_controller.js +7 -0
  24. data/app/javascript/devformance/controllers/index.js +14 -0
  25. data/app/javascript/devformance/controllers/metrics_controller.js +364 -0
  26. data/app/javascript/devformance/controllers/playground_controller.js +33 -0
  27. data/app/javascript/devmetrics.js +4 -0
  28. data/app/jobs/application_job.rb +7 -0
  29. data/app/jobs/devformance/file_runner_job.rb +318 -0
  30. data/app/mailers/application_mailer.rb +4 -0
  31. data/app/models/application_record.rb +3 -0
  32. data/app/models/devformance/file_result.rb +14 -0
  33. data/app/models/devformance/run.rb +19 -0
  34. data/app/models/devformance/slow_query.rb +5 -0
  35. data/app/views/devformance/metrics/index.html.erb +79 -0
  36. data/app/views/devformance/playground/run.html.erb +63 -0
  37. data/app/views/layouts/devformance/application.html.erb +856 -0
  38. data/app/views/layouts/mailer.html.erb +13 -0
  39. data/app/views/layouts/mailer.text.erb +1 -0
  40. data/app/views/metrics/index.html.erb +334 -0
  41. data/app/views/pwa/manifest.json.erb +22 -0
  42. data/app/views/pwa/service-worker.js +26 -0
  43. data/config/BUSINESS_LOGIC_PLAN.md +1244 -0
  44. data/config/application.rb +31 -0
  45. data/config/boot.rb +4 -0
  46. data/config/cable.yml +17 -0
  47. data/config/cache.yml +16 -0
  48. data/config/credentials.yml.enc +1 -0
  49. data/config/database.yml +98 -0
  50. data/config/deploy.yml +116 -0
  51. data/config/engine_routes.rb +13 -0
  52. data/config/environment.rb +5 -0
  53. data/config/environments/development.rb +84 -0
  54. data/config/environments/production.rb +90 -0
  55. data/config/environments/test.rb +59 -0
  56. data/config/importmap.rb +11 -0
  57. data/config/initializers/assets.rb +7 -0
  58. data/config/initializers/content_security_policy.rb +25 -0
  59. data/config/initializers/filter_parameter_logging.rb +8 -0
  60. data/config/initializers/inflections.rb +16 -0
  61. data/config/locales/en.yml +31 -0
  62. data/config/master.key +1 -0
  63. data/config/puma.rb +41 -0
  64. data/config/queue.yml +22 -0
  65. data/config/recurring.yml +15 -0
  66. data/config/routes.rb +20 -0
  67. data/config/storage.yml +34 -0
  68. data/db/migrate/20260317144616_create_slow_queries.rb +13 -0
  69. data/db/migrate/20260317175630_create_performance_runs.rb +14 -0
  70. data/db/migrate/20260317195043_add_run_id_to_slow_queries.rb +10 -0
  71. data/db/migrate/20260319000001_create_devformance_runs.rb +20 -0
  72. data/db/migrate/20260319000002_create_devformance_file_results.rb +29 -0
  73. data/db/migrate/20260319000003_add_columns_to_slow_queries.rb +7 -0
  74. data/lib/devformance/bullet_log_parser.rb +47 -0
  75. data/lib/devformance/compatibility.rb +12 -0
  76. data/lib/devformance/coverage_setup.rb +33 -0
  77. data/lib/devformance/engine.rb +80 -0
  78. data/lib/devformance/log_writer.rb +29 -0
  79. data/lib/devformance/run_orchestrator.rb +58 -0
  80. data/lib/devformance/sql_instrumentor.rb +29 -0
  81. data/lib/devformance/test_framework/base.rb +43 -0
  82. data/lib/devformance/test_framework/coverage_helper.rb +76 -0
  83. data/lib/devformance/test_framework/detector.rb +26 -0
  84. data/lib/devformance/test_framework/minitest.rb +71 -0
  85. data/lib/devformance/test_framework/registry.rb +24 -0
  86. data/lib/devformance/test_framework/rspec.rb +60 -0
  87. data/lib/devformance/test_helper.rb +42 -0
  88. data/lib/devformance/version.rb +3 -0
  89. data/lib/devformance.rb +196 -0
  90. data/lib/generators/devformance/install/install_generator.rb +73 -0
  91. data/lib/generators/devformance/install/templates/add_columns_to_slow_queries.rb.erb +7 -0
  92. data/lib/generators/devformance/install/templates/add_run_id_to_slow_queries.rb.erb +10 -0
  93. data/lib/generators/devformance/install/templates/create_devformance_file_results.rb.erb +29 -0
  94. data/lib/generators/devformance/install/templates/create_devformance_runs.rb.erb +20 -0
  95. data/lib/generators/devformance/install/templates/create_performance_runs.rb.erb +14 -0
  96. data/lib/generators/devformance/install/templates/create_slow_queries.rb.erb +13 -0
  97. data/lib/generators/devformance/install/templates/initializer.rb +23 -0
  98. data/lib/tasks/devformance.rake +45 -0
  99. data/spec/fixtures/devformance/devformance_run.rb +27 -0
  100. data/spec/fixtures/devformance/file_result.rb +34 -0
  101. data/spec/fixtures/devformance/slow_query.rb +11 -0
  102. data/spec/lib/devmetrics/log_writer_spec.rb +81 -0
  103. data/spec/lib/devmetrics/run_orchestrator_spec.rb +102 -0
  104. data/spec/lib/devmetrics/sql_instrumentor_spec.rb +115 -0
  105. data/spec/models/devmetrics/file_result_spec.rb +87 -0
  106. data/spec/models/devmetrics/run_spec.rb +66 -0
  107. data/spec/models/query_log_spec.rb +21 -0
  108. data/spec/rails_helper.rb +20 -0
  109. data/spec/requests/devmetrics/metrics_controller_spec.rb +149 -0
  110. data/spec/requests/devmetrics_pages_spec.rb +12 -0
  111. data/spec/requests/performance_spec.rb +17 -0
  112. data/spec/requests/slow_perf_spec.rb +9 -0
  113. data/spec/spec_helper.rb +114 -0
  114. data/spec/support/devmetrics_formatter.rb +106 -0
  115. data/spec/support/devmetrics_metrics.rb +37 -0
  116. data/spec/support/factory_bot.rb +3 -0
  117. metadata +200 -0
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails_helper"
4
+
5
+ RSpec.describe "Devformance Dashboard", type: :request do
6
+ describe "GET /devformance" do
7
+ it "returns 200 and renders the dashboard" do
8
+ get "/devformance"
9
+ expect(response).to have_http_status(200)
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,17 @@
1
+ require 'devformance'
2
+
3
+ RSpec.describe "Performance Suite", type: :request, devformance: true do
4
+ it "performs a slow query" do
5
+ # Trigger a dummy slow query if possible or just use sleep + notification
6
+ ActiveSupport::Notifications.instrument('sql.active_record', sql: 'SELECT * FROM users OFFSET 5000', start: Time.now - 0.2, finish: Time.now) do
7
+ # nothing
8
+ end
9
+ expect(true).to be true
10
+ end
11
+
12
+ it "performs another query" do
13
+ ActiveSupport::Notifications.instrument('sql.active_record', sql: 'SELECT count(*) FROM query_logs', start: Time.now - 0.05, finish: Time.now) do
14
+ end
15
+ expect(true).to be true
16
+ end
17
+ end
@@ -0,0 +1,9 @@
1
+ require 'devformance'
2
+
3
+ RSpec.describe "Slow Performance Suite", type: :request, devformance: true do
4
+ it "performs a very slow query" do
5
+ ActiveSupport::Notifications.instrument('sql.active_record', sql: 'SELECT pg_sleep(0.5)', start: Time.now - 0.5, finish: Time.now) do
6
+ end
7
+ expect(true).to be true
8
+ end
9
+ end
@@ -0,0 +1,114 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # See https://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
16
+
17
+ require "simplecov"
18
+ SimpleCov.start "rails" do
19
+ add_filter "/test/"
20
+ add_filter "/config/"
21
+ add_filter "/vendor/"
22
+
23
+ add_group "Controllers", "app/controllers"
24
+ add_group "Models", "app/models"
25
+ add_group "Services", "app/services"
26
+ add_group "Jobs", "app/jobs"
27
+ add_group "Serializers", "app/serializers"
28
+
29
+ minimum_coverage 90 # fails the build if you drop below this
30
+ end
31
+
32
+ RSpec.configure do |config|
33
+ # rspec-expectations config goes here. You can use an alternate
34
+ # assertion/expectation library such as wrong or the stdlib/minitest
35
+ # assertions if you prefer.
36
+ config.expect_with :rspec do |expectations|
37
+ # This option will default to `true` in RSpec 4. It makes the `description`
38
+ # and `failure_message` of custom matchers include text for helper methods
39
+ # defined using `chain`, e.g.:
40
+ # be_bigger_than(2).and_smaller_than(4).description
41
+ # # => "be bigger than 2 and smaller than 4"
42
+ # ...rather than:
43
+ # # => "be bigger than 2"
44
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
45
+ end
46
+
47
+ # rspec-mocks config goes here. You can use an alternate test double
48
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
49
+ config.mock_with :rspec do |mocks|
50
+ # Prevents you from mocking or stubbing a method that does not exist on
51
+ # a real object. This is generally recommended, and will default to
52
+ # `true` in RSpec 4.
53
+ mocks.verify_partial_doubles = true
54
+ end
55
+
56
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
57
+ # have no way to turn it off -- the option exists only for backwards
58
+ # compatibility in RSpec 3). It causes shared context metadata to be
59
+ # inherited by the metadata hash of host groups and examples, rather than
60
+ # triggering implicit auto-inclusion in groups with matching metadata.
61
+ config.shared_context_metadata_behavior = :apply_to_host_groups
62
+
63
+ # The settings below are suggested to provide a good initial experience
64
+ # with RSpec, but feel free to customize to your heart's content.
65
+ =begin
66
+ # This allows you to limit a spec run to individual examples or groups
67
+ # you care about by tagging them with `:focus` metadata. When nothing
68
+ # is tagged with `:focus`, all examples get run. RSpec also provides
69
+ # aliases for `it`, `describe`, and `context` that include `:focus`
70
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
71
+ config.filter_run_when_matching :focus
72
+
73
+ # Allows RSpec to persist some state between runs in order to support
74
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
75
+ # you configure your source control system to ignore this file.
76
+ config.example_status_persistence_file_path = "spec/examples.txt"
77
+
78
+ # Limits the available syntax to the non-monkey patched syntax that is
79
+ # recommended. For more details, see:
80
+ # https://rspec.info/features/3-12/rspec-core/configuration/zero-monkey-patching-mode/
81
+ config.disable_monkey_patching!
82
+
83
+ # This setting enables warnings. It's recommended, but in some cases may
84
+ # be too noisy due to issues in dependencies.
85
+ config.warnings = true
86
+
87
+ # Many RSpec users commonly either run the entire suite or an individual
88
+ # file, and it's useful to allow more verbose output when running an
89
+ # individual spec file.
90
+ if config.files_to_run.one?
91
+ # Use the documentation formatter for detailed output,
92
+ # unless a formatter has already been configured
93
+ # (e.g. via a command-line flag).
94
+ config.default_formatter = "doc"
95
+ end
96
+
97
+ # Print the 10 slowest examples and example groups at the
98
+ # end of the spec run, to help surface which specs are running
99
+ # particularly slow.
100
+ config.profile_examples = 10
101
+
102
+ # Run specs in random order to surface order dependencies. If you find an
103
+ # order dependency and want to debug it, you can fix the order by providing
104
+ # the seed, which is printed after each run.
105
+ # --seed 1234
106
+ config.order = :random
107
+
108
+ # Seed global randomization in this process using the `--seed` CLI option.
109
+ # Setting this allows you to use `--seed` to deterministically reproduce
110
+ # test failures related to randomization by passing the same `--seed` value
111
+ # as the one that triggered the failure.
112
+ Kernel.srand config.seed
113
+ =end
114
+ end
@@ -0,0 +1,106 @@
1
+ require 'csv'
2
+ require 'securerandom'
3
+
4
+ class DevformanceFormatter
5
+ def initialize(output)
6
+ @output = output
7
+ @log_file = Rails.root.join('log', "devformance_#{Time.current.strftime('%Y%m%d_%H%M%S')}.log")
8
+ @results = []
9
+ @start_time = Time.current
10
+ @slow_queries = []
11
+ @nplusone_issues = []
12
+ end
13
+
14
+ def example_started(example)
15
+ @current_example = {
16
+ id: SecureRandom.hex(4),
17
+ start_time: Time.current,
18
+ description: example.description,
19
+ controller: example.metadata[:controller] || 'unknown',
20
+ action: example.metadata[:action] || 'unknown',
21
+ file: example.location.file,
22
+ line: example.location.line
23
+ }
24
+ end
25
+
26
+ def example_passed(example)
27
+ log_result(example, 'PASS')
28
+ end
29
+
30
+ def example_failed(example)
31
+ log_result(example, 'FAIL')
32
+ end
33
+
34
+ def example_pending(example)
35
+ log_result(example, 'PENDING')
36
+ end
37
+
38
+ def dump_summary(duration, example_count, failure_count, pending_count)
39
+ write_summary(duration, example_count, failure_count, pending_count)
40
+ end
41
+
42
+ private
43
+
44
+ def log_result(example, status)
45
+ result = @current_example.merge(
46
+ status: status,
47
+ duration: Time.current - @current_example[:start_time],
48
+ end_time: Time.current,
49
+ slow_queries: @slow_queries.length,
50
+ nplusone: @nplusone_issues.length
51
+ )
52
+
53
+ @results << result
54
+ write_row(result)
55
+ clear_metrics
56
+ end
57
+
58
+ def write_row(row)
59
+ File.open(@log_file, 'a') do |f|
60
+ f.puts "\n" + '='*120
61
+ f.puts "| #{row[:end_time].strftime('%Y-%m-%d %H:%M:%S')} | #{row[:controller]}##{row[:action]} | #{row[:description][0..60]}... | #{row[:status].center(6)} | #{row[:duration].round(2)}ms | SQ:#{row[:slow_queries]} | N+1:#{row[:nplusone]} |"
62
+ f.puts '='*120
63
+ end
64
+ end
65
+
66
+ def write_summary(duration, total, failed, pending)
67
+ File.open(@log_file, 'a') do |f|
68
+ f.puts "\n" + '█'*120
69
+ f.puts "📊 DEV METRICS REPORT - #{Time.current.strftime('%Y-%m-%d %H:%M:%S')}"
70
+ f.puts '█'*120
71
+ f.puts "⏱️ Total Duration: #{duration.round(2)}s"
72
+ f.puts "✅ Tests Passed: #{total - failed - pending}"
73
+ f.puts "❌ Tests Failed: #{failed}"
74
+ f.puts "⏳ Tests Pending: #{pending}"
75
+ f.puts "📈 Total Tests: #{total}"
76
+
77
+ coverage = get_coverage_percentage
78
+ f.puts "📊 Test Coverage: #{coverage}%"
79
+
80
+ slow_query_total = @results.sum { |r| r[:slow_queries] }
81
+ nplusone_total = @results.sum { |r| r[:nplusone] }
82
+
83
+ f.puts "🐌 Total Slow Queries: #{slow_query_total}"
84
+ f.puts "🔄 Total N+1 Issues: #{nplusone_total}"
85
+ f.puts "🚀 Avg Test Duration: #{(@results.sum { |r| r[:duration] } / @results.length).round(2)}ms"
86
+ f.puts '█'*120
87
+ f.puts "📄 Log saved to: #{@log_file}"
88
+ end
89
+ end
90
+
91
+ def get_coverage_percentage
92
+ if File.exist?('coverage/index.html')
93
+ # Parse simplecov coverage
94
+ cov_file = File.read('coverage/.resultset.json')
95
+ return 95.0 # Placeholder - parse real coverage
96
+ end
97
+ 0.0
98
+ rescue
99
+ 0.0
100
+ end
101
+
102
+ def clear_metrics
103
+ @slow_queries.clear
104
+ @nplusone_issues.clear
105
+ end
106
+ end
@@ -0,0 +1,37 @@
1
+ require 'bullet'
2
+
3
+ RSpec.configure do |config|
4
+ config.around(:each, type: :request) do |example|
5
+ queries = []
6
+ subscriber = ActiveSupport::Notifications.subscribe('sql.active_record') do |_name, _start, _finish, _id, payload|
7
+ next if payload[:name]&.match?(/\A(SCHEMA|TRANSACTION)\z/)
8
+ next if payload[:sql]&.match?(/\A(BEGIN|COMMIT|ROLLBACK|SAVEPOINT|RELEASE)/i)
9
+ queries << payload[:sql]
10
+ end
11
+
12
+ if defined?(Bullet) && Bullet.enabled?
13
+ Bullet.start_request
14
+ end
15
+
16
+ example.run
17
+
18
+ if defined?(Bullet) && Bullet.enabled?
19
+ Bullet.end_request
20
+ if Bullet.notification_collector&.notifications_present?
21
+ puts "\n[Bullet] N+1 warnings in: #{example.full_description}"
22
+ Bullet.notification_collector.notifications.each do |notification|
23
+ puts " #{notification.body}"
24
+ end
25
+ end
26
+ end
27
+
28
+ ActiveSupport::Notifications.unsubscribe(subscriber)
29
+
30
+ if queries.any?
31
+ puts "\n[SQL] #{queries.size} quer#{queries.size == 1 ? 'y' : 'ies'} in: #{example.full_description}"
32
+ queries.each_with_index do |sql, i|
33
+ puts " #{i + 1}. #{sql}"
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,3 @@
1
+ RSpec.configure do |config|
2
+ config.include FactoryBot::Syntax::Methods
3
+ end
metadata ADDED
@@ -0,0 +1,200 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: devformance
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Devformance Contributors
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: rails
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '6.1'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '6.1'
26
+ - !ruby/object:Gem::Dependency
27
+ name: factory_bot_rails
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: simplecov
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ description: |
55
+ Devformance is a mountable Rails Engine that adds a live performance
56
+ monitoring dashboard to any Rails 6.1+ application. It tracks slow SQL
57
+ queries, detects N+1 issues via Bullet, streams test run output in real
58
+ time, and surfaces memory and DB connection metrics — all accessible at /devformance.
59
+ email: []
60
+ executables: []
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - README.md
65
+ - app/assets/builds/tailwind.css
66
+ - app/assets/images/icon.png
67
+ - app/assets/images/icon.svg
68
+ - app/assets/stylesheets/devmetrics/dashboard.css
69
+ - app/assets/stylesheets/devmetrics_live/application.css
70
+ - app/assets/tailwind/application.css
71
+ - app/channels/application_cable/channel.rb
72
+ - app/channels/application_cable/connection.rb
73
+ - app/channels/devformance/metrics_channel.rb
74
+ - app/controllers/application_controller.rb
75
+ - app/controllers/devformance/application_controller.rb
76
+ - app/controllers/devformance/icons_controller.rb
77
+ - app/controllers/devformance/metrics_controller.rb
78
+ - app/controllers/devformance/playground_controller.rb
79
+ - app/helpers/application_helper.rb
80
+ - app/helpers/metrics_helper.rb
81
+ - app/helpers/playground_helper.rb
82
+ - app/javascript/devformance/channels/consumer.js
83
+ - app/javascript/devformance/channels/index.js
84
+ - app/javascript/devformance/controllers/application.js
85
+ - app/javascript/devformance/controllers/hello_controller.js
86
+ - app/javascript/devformance/controllers/index.js
87
+ - app/javascript/devformance/controllers/metrics_controller.js
88
+ - app/javascript/devformance/controllers/playground_controller.js
89
+ - app/javascript/devmetrics.js
90
+ - app/jobs/application_job.rb
91
+ - app/jobs/devformance/file_runner_job.rb
92
+ - app/mailers/application_mailer.rb
93
+ - app/models/application_record.rb
94
+ - app/models/devformance/file_result.rb
95
+ - app/models/devformance/run.rb
96
+ - app/models/devformance/slow_query.rb
97
+ - app/views/devformance/metrics/index.html.erb
98
+ - app/views/devformance/playground/run.html.erb
99
+ - app/views/layouts/devformance/application.html.erb
100
+ - app/views/layouts/mailer.html.erb
101
+ - app/views/layouts/mailer.text.erb
102
+ - app/views/metrics/index.html.erb
103
+ - app/views/pwa/manifest.json.erb
104
+ - app/views/pwa/service-worker.js
105
+ - config/BUSINESS_LOGIC_PLAN.md
106
+ - config/application.rb
107
+ - config/boot.rb
108
+ - config/cable.yml
109
+ - config/cache.yml
110
+ - config/credentials.yml.enc
111
+ - config/database.yml
112
+ - config/deploy.yml
113
+ - config/engine_routes.rb
114
+ - config/environment.rb
115
+ - config/environments/development.rb
116
+ - config/environments/production.rb
117
+ - config/environments/test.rb
118
+ - config/importmap.rb
119
+ - config/initializers/assets.rb
120
+ - config/initializers/content_security_policy.rb
121
+ - config/initializers/filter_parameter_logging.rb
122
+ - config/initializers/inflections.rb
123
+ - config/locales/en.yml
124
+ - config/master.key
125
+ - config/puma.rb
126
+ - config/queue.yml
127
+ - config/recurring.yml
128
+ - config/routes.rb
129
+ - config/storage.yml
130
+ - db/migrate/20260317144616_create_slow_queries.rb
131
+ - db/migrate/20260317175630_create_performance_runs.rb
132
+ - db/migrate/20260317195043_add_run_id_to_slow_queries.rb
133
+ - db/migrate/20260319000001_create_devformance_runs.rb
134
+ - db/migrate/20260319000002_create_devformance_file_results.rb
135
+ - db/migrate/20260319000003_add_columns_to_slow_queries.rb
136
+ - lib/devformance.rb
137
+ - lib/devformance/bullet_log_parser.rb
138
+ - lib/devformance/compatibility.rb
139
+ - lib/devformance/coverage_setup.rb
140
+ - lib/devformance/engine.rb
141
+ - lib/devformance/log_writer.rb
142
+ - lib/devformance/run_orchestrator.rb
143
+ - lib/devformance/sql_instrumentor.rb
144
+ - lib/devformance/test_framework/base.rb
145
+ - lib/devformance/test_framework/coverage_helper.rb
146
+ - lib/devformance/test_framework/detector.rb
147
+ - lib/devformance/test_framework/minitest.rb
148
+ - lib/devformance/test_framework/registry.rb
149
+ - lib/devformance/test_framework/rspec.rb
150
+ - lib/devformance/test_helper.rb
151
+ - lib/devformance/version.rb
152
+ - lib/generators/devformance/install/install_generator.rb
153
+ - lib/generators/devformance/install/templates/add_columns_to_slow_queries.rb.erb
154
+ - lib/generators/devformance/install/templates/add_run_id_to_slow_queries.rb.erb
155
+ - lib/generators/devformance/install/templates/create_devformance_file_results.rb.erb
156
+ - lib/generators/devformance/install/templates/create_devformance_runs.rb.erb
157
+ - lib/generators/devformance/install/templates/create_performance_runs.rb.erb
158
+ - lib/generators/devformance/install/templates/create_slow_queries.rb.erb
159
+ - lib/generators/devformance/install/templates/initializer.rb
160
+ - lib/tasks/devformance.rake
161
+ - spec/fixtures/devformance/devformance_run.rb
162
+ - spec/fixtures/devformance/file_result.rb
163
+ - spec/fixtures/devformance/slow_query.rb
164
+ - spec/lib/devmetrics/log_writer_spec.rb
165
+ - spec/lib/devmetrics/run_orchestrator_spec.rb
166
+ - spec/lib/devmetrics/sql_instrumentor_spec.rb
167
+ - spec/models/devmetrics/file_result_spec.rb
168
+ - spec/models/devmetrics/run_spec.rb
169
+ - spec/models/query_log_spec.rb
170
+ - spec/rails_helper.rb
171
+ - spec/requests/devmetrics/metrics_controller_spec.rb
172
+ - spec/requests/devmetrics_pages_spec.rb
173
+ - spec/requests/performance_spec.rb
174
+ - spec/requests/slow_perf_spec.rb
175
+ - spec/spec_helper.rb
176
+ - spec/support/devmetrics_formatter.rb
177
+ - spec/support/devmetrics_metrics.rb
178
+ - spec/support/factory_bot.rb
179
+ homepage: https://github.com/yourusername/devformance
180
+ licenses:
181
+ - MIT
182
+ metadata: {}
183
+ rdoc_options: []
184
+ require_paths:
185
+ - lib
186
+ required_ruby_version: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: '3.1'
191
+ required_rubygems_version: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ requirements: []
197
+ rubygems_version: 3.6.7
198
+ specification_version: 4
199
+ summary: Real-time Rails performance dashboard
200
+ test_files: []