rails-profiler 0.14.0 → 0.16.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/app/assets/builds/profiler.css +47 -0
- data/app/assets/builds/profiler.js +707 -24
- data/app/controllers/profiler/api/env_vars_controller.rb +33 -0
- data/app/controllers/profiler/api/function_profiling_controller.rb +16 -4
- data/config/routes.rb +1 -0
- data/lib/profiler/collectors/env_collector.rb +38 -0
- data/lib/profiler/collectors/function_profiler_collector.rb +257 -35
- data/lib/profiler/version.rb +1 -1
- data/lib/profiler.rb +6 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 786465dc498178e1ab9256de7b02b397df7db82b4fc817fc3adbe191d8170fcd
|
|
4
|
+
data.tar.gz: acdeb2a1cdb00a59429bdf14a75f0551c4e94e65787b0640096dd5e044520999
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e6e51705278a372284b5936aab067c5c1fc09d257561b2787e9d8a5847f608c1cdc2149b74259abc9f411b48e8369f5fd368fd934b13eb8c2a47efbafd27651
|
|
7
|
+
data.tar.gz: f2cf3377ba982ee6135a0040d4f9d1c588c7255724d72d5fde8a38ed53cba188a40a669fa28161b906e3cc401b46405a2c24aac5d5438233e854b2e3c2ec3b74
|
|
@@ -2702,6 +2702,53 @@ a.profiler-toolbar-item.profiler-text--warning::after {
|
|
|
2702
2702
|
.profiler-fn-profiling__toggle--active:hover {
|
|
2703
2703
|
background: rgba(245, 158, 11, 0.15);
|
|
2704
2704
|
}
|
|
2705
|
+
.profiler-fn-profiling__mode-selector {
|
|
2706
|
+
display: inline-flex;
|
|
2707
|
+
border: 1px solid var(--profiler-border-strong);
|
|
2708
|
+
border-radius: var(--profiler-radius-sm);
|
|
2709
|
+
overflow: hidden;
|
|
2710
|
+
}
|
|
2711
|
+
.profiler-fn-profiling__mode-btn {
|
|
2712
|
+
height: 28px;
|
|
2713
|
+
padding: 0 12px;
|
|
2714
|
+
background: var(--profiler-bg-lighter);
|
|
2715
|
+
border: none;
|
|
2716
|
+
border-right: 1px solid var(--profiler-border-strong);
|
|
2717
|
+
color: var(--profiler-text-muted);
|
|
2718
|
+
font-size: var(--profiler-text-xs);
|
|
2719
|
+
font-weight: 600;
|
|
2720
|
+
font-family: var(--profiler-font-sans);
|
|
2721
|
+
cursor: pointer;
|
|
2722
|
+
transition: all var(--profiler-transition-base);
|
|
2723
|
+
white-space: nowrap;
|
|
2724
|
+
}
|
|
2725
|
+
.profiler-fn-profiling__mode-btn:last-child {
|
|
2726
|
+
border-right: none;
|
|
2727
|
+
}
|
|
2728
|
+
.profiler-fn-profiling__mode-btn:hover:not(:disabled):not(.profiler-fn-profiling__mode-btn--active) {
|
|
2729
|
+
background: var(--profiler-bg-elevated);
|
|
2730
|
+
color: var(--profiler-text);
|
|
2731
|
+
}
|
|
2732
|
+
.profiler-fn-profiling__mode-btn--active {
|
|
2733
|
+
background: var(--profiler-accent-bg);
|
|
2734
|
+
color: var(--profiler-accent);
|
|
2735
|
+
cursor: default;
|
|
2736
|
+
}
|
|
2737
|
+
.profiler-fn-profiling__mode-btn:disabled {
|
|
2738
|
+
opacity: 0.5;
|
|
2739
|
+
cursor: not-allowed;
|
|
2740
|
+
}
|
|
2741
|
+
.profiler-fn-profiling__cpu-pct {
|
|
2742
|
+
color: var(--profiler-text-subtle);
|
|
2743
|
+
font-size: 0.85em;
|
|
2744
|
+
}
|
|
2745
|
+
.profiler-fn-profiling__gc--medium {
|
|
2746
|
+
color: #f59e0b;
|
|
2747
|
+
}
|
|
2748
|
+
.profiler-fn-profiling__gc--high {
|
|
2749
|
+
color: #ef4444;
|
|
2750
|
+
font-weight: 600;
|
|
2751
|
+
}
|
|
2705
2752
|
.profiler-fn-profiling__hint {
|
|
2706
2753
|
margin: 12px 0 0;
|
|
2707
2754
|
padding: 10px 14px;
|