rails-profiler 0.44.1 → 0.44.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 46e258e22691c87c97c16eb5587ae226dadfda20087792676cd50ee0f15b889d
|
|
4
|
+
data.tar.gz: 435872dcf60c9507d16a6f6ec2fa1a81cf9e9efa3932f9c2c32986cb3a084671
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22223777d66e003f222df2a4f6e043f65331948ac5a5efd84d090b508404ebb9baa97ebc438268ddee41767416ec32b869fd685d0a712e3180550d4548f8a994
|
|
7
|
+
data.tar.gz: 7c6c8f85a7aa7f9c00a54a03b5690ee1065da8d3e8cbd5eacf1b18be70fedf4cd824fee4cae336c48339a13749b83e92de4d14d8757a41938e9b65c3384ed3d2
|
data/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,16 @@ every commit of every tag interval is accounted for one way or the other.
|
|
|
19
19
|
|
|
20
20
|
## [Unreleased]
|
|
21
21
|
|
|
22
|
+
## [0.44.2] - 2026-10-21
|
|
23
|
+
|
|
24
|
+
<!-- stamped -->
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- **Database:** A real query that contains a line starting with `COMMIT`, `BEGIN`, `ROLLBACK`,
|
|
29
|
+
`SAVEPOINT` or `RELEASE` is no longer hidden from the database and flamegraph collectors: only a
|
|
30
|
+
statement that is itself a transaction instruction is skipped, whatever the leading whitespace.
|
|
31
|
+
|
|
22
32
|
## [0.44.1] - 2026-10-21
|
|
23
33
|
|
|
24
34
|
<!-- stamped -->
|
|
@@ -58,7 +58,7 @@ module Profiler
|
|
|
58
58
|
|
|
59
59
|
# Skip schema queries and internal Rails queries
|
|
60
60
|
next if payload[:name] == "SCHEMA"
|
|
61
|
-
next if payload[:sql] =~
|
|
61
|
+
next if payload[:sql] =~ /\A\s*(BEGIN|COMMIT|ROLLBACK|SAVEPOINT|RELEASE)\b/i
|
|
62
62
|
|
|
63
63
|
query = Models::SqlQuery.new(
|
|
64
64
|
sql: payload[:sql],
|
|
@@ -82,7 +82,7 @@ module Profiler
|
|
|
82
82
|
# SQL queries
|
|
83
83
|
@subscriptions << subscribe_notification("sql.active_record") do |_name, started, finished, _unique_id, payload|
|
|
84
84
|
next if payload[:name] == "SCHEMA"
|
|
85
|
-
next if payload[:sql] =~
|
|
85
|
+
next if payload[:sql] =~ /\A\s*(BEGIN|COMMIT|ROLLBACK|SAVEPOINT|RELEASE)\b/i
|
|
86
86
|
|
|
87
87
|
sql = payload[:sql].to_s
|
|
88
88
|
add_event Models::TimelineEvent.new(
|
data/lib/profiler/version.rb
CHANGED