commit | 7e74fc5ae933e1cae7e2c41bdde43e76ec4e8626 | [log] [tgz] |
---|---|---|
author | Lalit Maganti <lalitm@google.com> | Tue Jul 26 15:11:23 2022 +0100 |
committer | Lalit Maganti <lalitm@google.com> | Tue Jul 26 15:11:23 2022 +0100 |
tree | de44a70b8d6e73beef39cd586e455b5118b0f5e5 | |
parent | 7d7687ea9f023fc81d69f079e3adbcc7fb3a14d2 [diff] |
tp: fix ninja gzip by flushing data in gzip parser As the ninja parser pushes all events in NotifyEndOfFile, we need to call this even when going through gzip Bug: https://github.com/google/perfetto/issues/329 Change-Id: Ib8bc56c270670a17323ec1e951d288773b3eb3a5
diff --git a/src/trace_processor/importers/gzip/gzip_trace_parser.cc b/src/trace_processor/importers/gzip/gzip_trace_parser.cc index 640f2f1..7d7b8d8 100644 --- a/src/trace_processor/importers/gzip/gzip_trace_parser.cc +++ b/src/trace_processor/importers/gzip/gzip_trace_parser.cc
@@ -112,6 +112,9 @@ // util::Status. PERFETTO_DCHECK(!needs_more_input_); PERFETTO_DCHECK(!buffer_); + + if (inner_) + inner_->NotifyEndOfFile(); } } // namespace trace_processor