Turbopack: fix trace crates after concurrent trace format changes
#99809 (typed, delta-encoded trace timestamps) landed after two PRs that it was never built together with:
- #99527 added `memory_footprint` to `TraceRow::MemorySample`, but the new `TraceRow::try_map_timestamp` doesn't copy it, so `turbopack-trace-utils` doesn't compile.
- #100205 added trace-server test helpers for the untyped format. Their rows now have the wrong timestamp type, and a second `encode` writes no `TimestampBase`.
Copy `memory_footprint` in `try_map_timestamp` and cover it with a round-trip test. Port the #100205 test helpers to `TraceRow<'_, u64>` and the shared encoder; their tests are unchanged apart from encoding one continuous trace in the partial-read test.
Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment