dial 0.2.5 → 0.2.7
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 +8 -0
- data/README.md +1 -4
- data/lib/dial/constants.rb +1 -1
- data/lib/dial/middleware/panel.rb +6 -5
- data/lib/dial/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f835ac5df86b954348701863b833337141174567c9ecb5e0e94d5b0909565de
|
4
|
+
data.tar.gz: f623e3b6b0b44dab2d0dc9975d04b9c90a519f4a702034d962d524365148040a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09c6101e6e84370484d6fe459b88f1ea9110f46f672dc248695efc4b6900be4b1de9b3950d7620221ccd97d0214dbd8d58a74e1809fa4ebe268c1b90ae1769c9'
|
7
|
+
data.tar.gz: b852559a9ff6db963124f688c17fec14db2417267cf8d27cd7a03aaf504d8bfdd9ab89a64d773dd7525f9365f0c7b07696f551059659f04ae45640f163379b18
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.2.7] - 2025-04-05
|
4
|
+
|
5
|
+
- Prevent style inheritance in panel
|
6
|
+
|
7
|
+
## [0.2.6] - 2025-04-05
|
8
|
+
|
9
|
+
- Decrease default vernier allocation interval from 20k to 2k
|
10
|
+
|
3
11
|
## [0.2.5] - 2025-04-04
|
4
12
|
|
5
13
|
- Perf: Write prosopite logs to IO stream instead of file
|
data/README.md
CHANGED
@@ -3,8 +3,6 @@
|
|
3
3
|

|
4
4
|

|
5
5
|
|
6
|
-
WIP
|
7
|
-
|
8
6
|
A modern profiler for your Rails application.
|
9
7
|
|
10
8
|
Utilizes [vernier](https://github.com/jhawthorn/vernier) for profiling and
|
@@ -14,8 +12,7 @@ Utilizes [vernier](https://github.com/jhawthorn/vernier) for profiling and
|
|
14
12
|
> Check out the resources in the [Vernier](https://github.com/jhawthorn/vernier) project for more information on how to
|
15
13
|
> interpret the viewer, as well as comparisons with other profilers, including `stackprof`.
|
16
14
|
|
17
|
-
|
18
|
-
[](https://youtu.be/LPXtfJ0c284)
|
15
|
+

|
19
16
|
|
20
17
|
## Installation
|
21
18
|
|
data/lib/dial/constants.rb
CHANGED
@@ -17,7 +17,7 @@ module Dial
|
|
17
17
|
FILE_STALE_SECONDS = 60 * 60
|
18
18
|
|
19
19
|
VERNIER_INTERVAL = 200
|
20
|
-
VERNIER_ALLOCATION_INTERVAL =
|
20
|
+
VERNIER_ALLOCATION_INTERVAL = 2_000
|
21
21
|
VERNIER_PROFILE_OUT_RELATIVE_DIRNAME = "tmp/dial/profiles"
|
22
22
|
VERNIER_VIEWER_URL = "https://vernier.prof"
|
23
23
|
|
@@ -80,6 +80,7 @@ module Dial
|
|
80
80
|
def style
|
81
81
|
<<~CSS
|
82
82
|
#dial {
|
83
|
+
all: initial;
|
83
84
|
max-height: 50%;
|
84
85
|
max-width: 50%;
|
85
86
|
z-index: 9999;
|
@@ -151,19 +152,19 @@ module Dial
|
|
151
152
|
|
152
153
|
def script
|
153
154
|
<<~JS
|
154
|
-
|
155
|
-
|
155
|
+
const dialPreview = document.getElementById("dial-preview");
|
156
|
+
const dialDetails = document.getElementById("dial-details");
|
156
157
|
|
157
158
|
dialPreview.addEventListener("click", () => {
|
158
|
-
|
159
|
-
dialDetails.style.display =
|
159
|
+
const isCollapsed = ["", "none"].includes(dialDetails.style.display);
|
160
|
+
dialDetails.style.display = isCollapsed ? "block" : "none";
|
160
161
|
});
|
161
162
|
|
162
163
|
document.addEventListener("click", (event) => {
|
163
164
|
if (!dialPreview.contains(event.target) && !dialDetails.contains(event.target)) {
|
164
165
|
dialDetails.style.display = "none";
|
165
166
|
|
166
|
-
|
167
|
+
const detailsElements = dialDetails.querySelectorAll("details");
|
167
168
|
detailsElements.forEach(detail => {
|
168
169
|
detail.removeAttribute("open");
|
169
170
|
});
|
data/lib/dial/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Young
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-04-
|
10
|
+
date: 2025-04-05 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: railties
|