Home | History | Annotate | Download | only in simpleperf

Lines Matching refs:Record

51 // perf_event_header uses u16 to store record size. However, that is not
53 // a simpleperf_record_header struct to store record header for simpleperf
171 // SampleId is optional at the end of a record in binary format. Its content is
201 // Usually one record contains the following three parts in order in binary
203 // RecordHeader (at the head of a record, containing type and size info)
204 // data depends on the record type
205 // SampleId (optional part at the end of a record)
207 // Record, and hold the type specific data part in classes derived from Record.
208 struct Record {
212 Record() : binary_(nullptr), own_binary_(false) {}
213 explicit Record(const char* p) : header(p), binary_(p), own_binary_(false) {}
214 Record(Record&& other);
216 virtual ~Record() {
259 DISALLOW_COPY_AND_ASSIGN(Record);
262 struct MmapRecord : public Record {
285 struct Mmap2Record : public Record {
309 struct CommRecord : public Record {
325 struct ExitOrForkRecord : public Record {
354 struct LostRecord : public Record {
364 struct SampleRecord : public Record {
409 // record file.
410 struct BuildIdRecord : public Record {
424 struct KernelSymbolRecord : public Record {
436 struct DsoRecord : public Record {
451 struct SymbolRecord : public Record {
466 struct TracingDataRecord : public Record {
478 struct EventIdRecord : public Record {
493 // UnknownRecord is used for unknown record types, it makes sure all unknown
495 struct UnknownRecord : public Record {
504 // Read record from the buffer pointed by [p]. But the record doesn't own
506 std::unique_ptr<Record> ReadRecordFromBuffer(const perf_event_attr& attr,
509 // Read record from the buffer pointed by [p]. And the record owns the buffer.
510 std::unique_ptr<Record> ReadRecordFromOwnedBuffer(const perf_event_attr& attr,
515 std::vector<std::unique_ptr<Record>> ReadRecordsFromBuffer(
518 // Read one record from the buffer pointed by [p]. But the record doesn't
520 std::unique_ptr<Record> ReadRecordFromBuffer(const perf_event_attr& attr,
528 // RecordCache pushes records and pops sorted record online. It uses two checks
529 // to help ensure that records are popped in order. Each time we pop a record A,
530 // it is the earliest record among all records in the cache. In addition, we
534 // record A, we are not likely to receive a record earlier than A. For
535 // min_time_diff check, we check if record A is generated min_time_diff ns
536 // earlier than the latest record, which is based on the assumption that if we
537 // have received a record for time t, we are not likely to receive a record for
544 void Push(std::unique_ptr<Record> record);
545 void Push(std::vector<std::unique_ptr<Record>> records);
546 std::unique_ptr<Record> Pop();
547 std::vector<std::unique_ptr<Record>> PopAll();
548 std::unique_ptr<Record> ForcedPop();
553 Record* record;
555 RecordWithSeq(uint32_t seq, Record* recordrecord(record) {}