Commit f3439fc
feat(profiling): Add JFR to OTLP conversion convenience script with diagnostics
Added convert-jfr.sh convenience wrapper for JFR to OTLP conversion with
comprehensive diagnostic output and cross-platform compatibility.
Features:
- Simple CLI interface wrapping Gradle convertJfr task
- Support for all converter options (--json, --pretty, --include-payload)
- --diagnostics flag showing detailed metrics:
* Input/output file sizes with human-readable formatting
* Actual conversion time (parsed from converter output)
* Compression ratios and savings
- Colored output for better readability
- Cross-platform file size detection (Linux and macOS)
- Automatic compilation via Gradle
Implementation:
- Parses converter's own timing output to show actual conversion time
(e.g., 141ms) instead of total Gradle execution time (13+ seconds)
- Uses try-fallback approach for stat command (GNU stat → BSD stat)
- Works on Linux, macOS with GNU coreutils, and native macOS
Documentation:
- Added "Convenience Script" section to doc/CLI.md
- Usage examples and feature list
- Diagnostic output examples
Example:
./convert-jfr.sh --diagnostics recording.jfr output.pb
Shows: 141ms conversion time, 2.0MB → 2.2KB (99.9% reduction)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 1b30ff2 commit f3439fc
File tree
1 file changed
+21
-20
lines changed- dd-java-agent/agent-profiling/profiling-otel
1 file changed
+21
-20
lines changedLines changed: 21 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
200 | 196 | | |
| 197 | + | |
201 | 198 | | |
202 | 199 | | |
203 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
237 | | - | |
238 | | - | |
239 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
240 | 241 | | |
0 commit comments