rails-profiler 0.41.0 → 0.42.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/CHANGELOG.md +9 -0
- data/app/assets/builds/profiler.js +13 -12
- data/app/controllers/profiler/api/compare_controller.rb +42 -0
- data/app/controllers/profiler/application_controller.rb +9 -0
- data/app/controllers/profiler/compare_controller.rb +14 -0
- data/app/views/profiler/compare/show.html.erb +6 -0
- data/config/routes.rb +5 -0
- data/lib/profiler/configuration.rb +13 -1
- data/lib/profiler/mcp/server.rb +15 -0
- data/lib/profiler/mcp/tools/compare_profiles.rb +158 -0
- data/lib/profiler/peers/peer_proxy.rb +83 -0
- data/lib/profiler/peers.rb +142 -0
- data/lib/profiler/profile_comparison.rb +44 -0
- data/lib/profiler/profile_diff.rb +253 -0
- data/lib/profiler/railtie.rb +2 -0
- data/lib/profiler/version.rb +1 -1
- data/lib/profiler.rb +4 -0
- metadata +9 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 56b64fc5b7eafdb748a1dc236605573317b7eb018192f3f784473dee1452954d
|
|
4
|
+
data.tar.gz: a347f0f26ca063176c85d7ce3671c30a85bfc9fc642f2f95d46332dd8dafcf4c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da5993a01741578d15b8f6d71c46a2e093991ede0526cb622950ca01d905224971a9241c39eb50d5f1adf904ff39217f1d68c81fd9982405167912f75a5f20b2
|
|
7
|
+
data.tar.gz: 57f912fefa7c794641f42362384bb207acfd06e617ae031c3fcea27f8e9e6b632f0f10f7a97310a4c57e9a5648c382e2a47aac750850e279eb3c8c2897ff65b4
|
data/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,15 @@ every commit of every tag interval is accounted for one way or the other.
|
|
|
19
19
|
|
|
20
20
|
## [Unreleased]
|
|
21
21
|
|
|
22
|
+
## [0.42.0] - 2026-10-20
|
|
23
|
+
|
|
24
|
+
<!-- stamped -->
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- **Compare:** `compare_profiles` (MCP) and the dashboard's Compare page diff two profiles: total duration, allocations, cache hit rate, rendered views, and SQL queries grouped by normalized statement into new, gone and slower blocks.
|
|
29
|
+
- **Compare:** each of the two profiles can come from another instance: `config.peers = [{ name:, url: }]` is an explicit allow list (empty by default, so no outgoing call), `config.peer_token` is sent in the `X-Profiler-Peer-Token` header and, on the serving instance, opens `GET /_profiler/api/profiles/:token` only. A URL from a request or a tool argument is never called, and an unknown node is refused with an error. `node_a` and `node_b` pick the node, in the MCP tool and with a selector per profile in the dashboard.
|
|
30
|
+
|
|
22
31
|
## [0.41.0] - 2026-10-20
|
|
23
32
|
|
|
24
33
|
<!-- stamped -->
|