| 33 | } |
| 34 | |
| 35 | void ISampleObserver::DetachObserver() { |
| 36 | if (data_group_ != nullptr) { |
| 37 | data_group_->DetachSampleObserver(this); |
| 38 | data_group_ = nullptr; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | bool ISampleObserver::OnSample(uint64_t sample, uint64_t record_id, |
| 43 | const std::vector<uint8_t> &record) { |