Searched refs:metric_buffer (Results 1 – 2 of 2) sorted by relevance
247 assert(metric_buffer.size() >= 1024 && "Metric buffer should have space for reading"); in read_data_from_metric_set()250 while ((bytes_read = perf->read_oa_stream(metric_buffer.data() + total_bytes_read, in read_data_from_metric_set()251 metric_buffer.size() - total_bytes_read)) > 0 || in read_data_from_metric_set()256 if (metric_buffer.size() / 2 < total_bytes_read) { in read_data_from_metric_set()257 metric_buffer.resize(metric_buffer.size() * 2); in read_data_from_metric_set()261 assert(total_bytes_read < metric_buffer.size() && "Buffer not big enough"); in read_data_from_metric_set()272 auto new_records = parse_perf_records(metric_buffer, total_bytes_read); in dump_perfcnt()
77 std::vector<uint8_t> metric_buffer = std::vector<uint8_t>(1024, 0); variable