| 791 | } |
| 792 | |
| 793 | void QueueState::SetLastBatch(BatchContextPtr&& last) { |
| 794 | if (last) { |
| 795 | // Clean up the events data in the previous last batch on queue, as only the subsequent |
| 796 | // batches have valid use for them and the QueueBatchContext::Setup calls have be copying |
| 797 | // them along from batch to batch during submit. |
| 798 | if (last_batch_) { |
| 799 | last_batch_->ResetEventsContext(); |
| 800 | } |
| 801 | last->Trim(); |
| 802 | last_batch_ = std::move(last); |
| 803 | } |
| 804 | } |
| 805 | |
| 806 | void BatchAccessLog::Import(const BatchRecord& batch, const CommandBufferAccessContext& cb_access, |
| 807 | const std::vector<std::string>& initial_label_stack) { |
no test coverage detected