Skip to content

Stage 3a: Rename and refactor compress trace files, extract shared ChunkTraceCore#537

Open
Victor-C-Zhang wants to merge 1 commit intofacebook:devfrom
Victor-C-Zhang:export-D96836952
Open

Stage 3a: Rename and refactor compress trace files, extract shared ChunkTraceCore#537
Victor-C-Zhang wants to merge 1 commit intofacebook:devfrom
Victor-C-Zhang:export-D96836952

Conversation

@Victor-C-Zhang
Copy link
Contributor

Summary:
Renames compress-side trace files for clarity and extracts shared logic
into a reusable static helper class ChunkTraceCore:

  • Renames ChunkTraceCompressChunkTrace and Tracer
    CompressTracer to clarify that these are compress-specific, making
    room for their decompress counterparts

  • Extracts initTrace(), finalizeUnconsumedStreams(),
    serializeChunkDataToCBOR(), and writeSerializedStreamdump() into
    ChunkTraceCore — previously duplicated logic that will be shared
    with the decompress side

  • Moves StreamdumpEntry and TraceResult structs to namespace scope
    in ChunkTraceCore.hpp for reuse by both compress and decompress sides

Pure refactor — no behavioral changes.

Differential Revision: D96836952

…unkTraceCore

Summary:
Renames compress-side trace files for clarity and extracts shared logic
into a reusable static helper class `ChunkTraceCore`:

- Renames `ChunkTrace` → `CompressChunkTrace` and `Tracer` →
  `CompressTracer` to clarify that these are compress-specific, making
  room for their decompress counterparts

- Extracts `initTrace()`, `finalizeUnconsumedStreams()`,
  `serializeChunkDataToCBOR()`, and `writeSerializedStreamdump()` into
  `ChunkTraceCore` — previously duplicated logic that will be shared
  with the decompress side

- Moves `StreamdumpEntry` and `TraceResult` structs to namespace scope
  in `ChunkTraceCore.hpp` for reuse by both compress and decompress sides

Pure refactor — no behavioral changes.

Differential Revision: D96836952
@meta-cla meta-cla bot added the cla signed label Mar 19, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 19, 2026

@Victor-C-Zhang has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96836952.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant