Commit d021da6
refactor(profiling): Consolidate converter script output for clarity
Simplified the conversion script output to avoid duplicate information:
Default mode (no flags):
- Single concise line: "[SUCCESS] Converted: output.pb (45.2KB, 127ms)"
- No verbose converter output shown
- Perfect for scripting and quick conversions
Diagnostics mode (--diagnostics):
- Shows converter's detailed output (files, format, time)
- Enhanced diagnostics section with compression metrics
- Clear input→output flow visualization
- Space savings calculations
Changes:
- Removed duplicate "Converting..." and "Conversion complete" messages
- Eliminated redundant output file info in default mode
- Consolidated size/time reporting
- Renamed section to "Enhanced Diagnostics" to distinguish from converter output
Example outputs:
Default:
[SUCCESS] Converted: output.pb (45.2KB, 127ms)
With --diagnostics:
[DIAG] Input: recording.jfr (89.3KB)
Converting 1 JFR file(s) to OTLP format...
Adding: recording.jfr
Conversion complete!
Output: output.pb
Format: PROTO
Size: 45.2 KB
Time: 127 ms
[DIAG] === Enhanced Diagnostics ===
[DIAG] Input → Output: 89.3KB → 45.2KB
[DIAG] Compression: 50.6% of original
[DIAG] Space saved: 44.1KB (49.4% reduction)
Documentation updated in CLI.md with both output examples.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 7a11c57 commit d021da6
File tree
2 files changed
+58
-43
lines changed- dd-java-agent/agent-profiling/profiling-otel
- doc
2 files changed
+58
-43
lines changedLines changed: 22 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | | - | |
281 | 279 | | |
282 | 280 | | |
283 | 281 | | |
| |||
287 | 285 | | |
288 | 286 | | |
289 | 287 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
294 | 291 | | |
295 | | - | |
296 | 292 | | |
297 | | - | |
298 | | - | |
299 | 293 | | |
300 | | - | |
301 | | - | |
302 | | - | |
| 294 | + | |
| 295 | + | |
303 | 296 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
309 | 302 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
321 | 307 | | |
322 | | - | |
323 | | - | |
324 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
325 | 317 | | |
326 | 318 | | |
327 | 319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | | - | |
370 | 369 | | |
371 | 370 | | |
372 | | - | |
373 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
374 | 378 | | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
380 | 388 | | |
381 | 389 | | |
382 | 390 | | |
| |||
391 | 399 | | |
392 | 400 | | |
393 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
394 | 408 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
399 | 422 | | |
400 | 423 | | |
401 | 424 | | |
| |||
0 commit comments