feat(read): add --raw-bytes to emit packet bytes as hex#29
Merged
Conversation
Contributor
|
| Branch | add-packet-bytes-cli-option |
| Testbed | ubuntu-latest |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result milliseconds (ms) (Result Δ%) | Upper Boundary milliseconds (ms) (Limit %) |
|---|---|---|---|
| target/release/dsct read bench_input.pcap | 📈 view plot 🚷 view threshold | 5.93 ms(-2.06%)Baseline: 6.05 ms | 6.92 ms (85.72%) |
| target/release/dsct stats bench_input.pcap | 📈 view plot 🚷 view threshold | 72.06 ms(+4.13%)Baseline: 69.21 ms | 85.85 ms (83.95%) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--raw-bytesflag todsct readthat appends the full original packet bytes (link-layer included) as a lowercase hex string underraw_bytesin each JSONL record.raw_bytes: boolin the MCPread_packetstool.read_schema()and README.Without the flag, output is byte-identical to before (backward compatible).