/system/extras/simpleperf/ |
D | record_test.cpp | 33 void CheckRecordMatchBinary(const Record& record) { in CheckRecordMatchBinary() 35 std::vector<std::unique_ptr<Record>> records = in CheckRecordMatchBinary() 71 cache.Push(std::unique_ptr<Record>(r1)); in TEST_F() 77 cache.Push(std::unique_ptr<Record>(r2)); in TEST_F() 79 std::unique_ptr<Record> popped_r = cache.Pop(); in TEST_F() 87 cache.Push(std::unique_ptr<Record>(r3)); in TEST_F() 93 cache.Push(std::unique_ptr<Record>(r4)); in TEST_F() 104 std::vector<std::unique_ptr<Record>> last_records = cache.PopAll(); in TEST_F() 117 cache.Push(std::unique_ptr<Record>(records.back())); in TEST_F() 119 std::vector<std::unique_ptr<Record>> out_records = cache.PopAll(); in TEST_F() [all …]
|
D | record.h | 208 struct Record { struct 212 Record() : binary_(nullptr), own_binary_(false) {} in Record() argument 213 explicit Record(const char* p) : header(p), binary_(p), own_binary_(false) {} in Record() argument 214 Record(Record&& other); 216 virtual ~Record() { in ~Record() argument 259 DISALLOW_COPY_AND_ASSIGN(Record); argument 262 struct MmapRecord : public Record { 285 struct Mmap2Record : public Record { 309 struct CommRecord : public Record { 325 struct ExitOrForkRecord : public Record { [all …]
|
D | record.cpp | 172 Record::Record(Record&& other) { in Record() function in Record 181 void Record::Dump(size_t indent) const { in Dump() 188 uint64_t Record::Timestamp() const { return sample_id.time_data.time; } in Timestamp() 189 uint32_t Record::Cpu() const { return sample_id.cpu_data.cpu; } in Cpu() 190 uint64_t Record::Id() const { return sample_id.id_data.id; } in Id() 192 void Record::UpdateBinary(const char* new_binary) { in UpdateBinary() 200 MmapRecord::MmapRecord(const perf_event_attr& attr, const char* p) : Record(p) { in MmapRecord() 253 : Record(p) { in Mmap2Record() 292 CommRecord::CommRecord(const perf_event_attr& attr, const char* p) : Record(p) { in CommRecord() 331 : Record(p) { in ExitOrForkRecord() [all …]
|
D | record_file.h | 46 bool WriteRecord(const Record& record); 48 bool ReadDataSection(const std::function<void(const Record*)>& callback); 130 bool ReadDataSection(const std::function<bool(std::unique_ptr<Record>)>& callback, 136 bool ReadRecord(std::unique_ptr<Record>& record, bool sorted = true); 138 size_t GetAttrIndexOfRecord(const Record* record); 159 std::vector<std::unique_ptr<Record>> DataSection(); 167 std::unique_ptr<Record> ReadRecord(uint64_t* nbytes_read);
|
D | record_file_reader.cpp | 169 const std::function<bool(std::unique_ptr<Record>)>& callback, bool sorted) { in ReadDataSection() 170 std::unique_ptr<Record> record; in ReadDataSection() 182 bool RecordFileReader::ReadRecord(std::unique_ptr<Record>& record, in ReadRecord() 218 std::unique_ptr<Record> RecordFileReader::ReadRecord(uint64_t* nbytes_read) { in ReadRecord() 219 char header_buf[Record::header_size()]; in ReadRecord() 220 if (!Read(header_buf, Record::header_size())) { in ReadRecord() 229 char header_buf[Record::header_size()]; in ReadRecord() 231 size_t bytes_to_read = header.size - Record::header_size(); in ReadRecord() 238 if (!Read(header_buf, Record::header_size())) { in ReadRecord() 253 memcpy(p.get(), header_buf, Record::header_size()); in ReadRecord() [all …]
|
D | record_file_writer.cpp | 122 bool RecordFileWriter::WriteRecord(const Record& record) { in WriteRecord() 137 char header_buf[Record::header_size()]; in WriteRecord() 140 uint32_t bytes_to_write = std::min(RECORD_SIZE_LIMIT - Record::header_size(), left_bytes); in WriteRecord() 141 header.size = bytes_to_write + Record::header_size(); in WriteRecord() 144 if (!WriteData(header_buf, Record::header_size())) { in WriteRecord() 154 header.size = Record::header_size(); in WriteRecord() 157 return WriteData(header_buf, Record::header_size()); in WriteRecord() 184 bool RecordFileWriter::ReadDataSection(const std::function<void(const Record*)>& callback) { in ReadDataSection() 192 if (!Read(record_buf.data(), Record::header_size())) { in ReadDataSection() 199 if (!Read(record_buf.data() + Record::header_size(), header.size - Record::header_size())) { in ReadDataSection() [all …]
|
D | report_sample.proto | 3 // message Record(record_0) (having record_size_0 bytes) 5 // message Record(record_1) (having record_size_1 bytes) 8 // message Record(record_N) (having record_size_N bytes) 68 message Record { message
|
D | InplaceSamplerClient.h | 36 bool StartPolling(IOEventLoop& loop, const std::function<bool(Record*)>& record_callback, 51 std::function<bool(Record*)> record_callback_;
|
D | cmd_report_sample.cpp | 89 bool ProcessRecord(std::unique_ptr<Record> record); 95 bool WriteRecordInProtobuf(proto::Record& proto_record); 170 [this](std::unique_ptr<Record> record) { in Run() 270 proto::Record proto_record; in DumpProtobufReport() 347 bool ReportSampleCommand::ProcessRecord(std::unique_ptr<Record> record) { in ProcessRecord() 367 proto::Record proto_record; in PrintSampleRecordInProtobuf() 421 bool ReportSampleCommand::WriteRecordInProtobuf(proto::Record& proto_record) { in WriteRecordInProtobuf() 472 proto::Record proto_record; in PrintLostSituationInProtobuf() 495 proto::Record proto_record; in PrintFileInfoInProtobuf() 527 proto::Record proto_record; in PrintThreadInfoInProtobuf()
|
D | event_selection_set.h | 115 bool PrepareToReadMmapEventData(const std::function<bool(Record*)>& callback); 165 std::function<bool(Record*)> record_callback_; 179 std::unique_ptr<Record> r;
|
D | record_equal_test.h | 62 static void CheckRecordEqual(const Record& r1, const Record& r2) { in CheckRecordEqual()
|
D | thread_tree.h | 28 struct Record; 119 void Update(const Record& record);
|
D | cmd_record.cpp | 201 bool ProcessRecord(Record* record); 202 void UpdateRecordForEmbeddedElfPath(Record* record); 203 bool UnwindRecord(Record* record); 850 bool RecordCommand::ProcessRecord(Record* record) { in ProcessRecord() 899 void RecordCommand::UpdateRecordForEmbeddedElfPath(Record* record) { in UpdateRecordForEmbeddedElfPath() 907 bool RecordCommand::UnwindRecord(Record* record) { in UnwindRecord() 946 [this](std::unique_ptr<Record> record) { in PostUnwind() 983 auto callback = [&](const Record* r) { in DumpAdditionalFeatures()
|
D | record_file_test.cpp | 90 std::vector<std::unique_ptr<Record>> records = reader->DataSection(); in TEST_F() 128 std::vector<std::unique_ptr<Record>> records = reader->DataSection(); in TEST_F()
|
D | README.md | 26 …- [Record and report profiling data (using command-lines)](#record-and-report-profiling-data-using… 27 …- [Record and report profiling data (using python scripts)](#record-and-report-profiling-data-usin… 28 - [Record and report call graph](#record-and-report-call-graph) 307 # Record on process 7394 for 10 seconds, using default event (cpu-cycles), 318 # Record using event instructions. 325 # Record process 11904 and 11905. 328 # Record thread 11904 and 11905. 331 # Record a child process running `ls`. 342 # Record with sample frequency 1000: sample 1000 times every second running. 345 # Record with sample period 100000: sample 1 time every 100000 events. [all …]
|
D | cmd_record_test.cpp | 90 std::vector<std::unique_ptr<Record>> records = reader->DataSection(); in TEST() 256 std::vector<std::unique_ptr<Record>> records = reader->DataSection(); in CheckKernelSymbol() 287 std::vector<std::unique_ptr<Record>> records = reader->DataSection(); in CheckDsoSymbolRecords() 478 std::unique_ptr<Record> r; in TEST()
|
D | perf_clock.cpp | 133 std::vector<std::unique_ptr<Record>> records = in GetClockDiff()
|
D | cmd_kmem.cpp | 333 bool ProcessRecord(std::unique_ptr<Record> record); 596 [this](std::unique_ptr<Record> record) { in ReadSampleTreeFromRecordFile() 608 bool KmemCommand::ProcessRecord(std::unique_ptr<Record> record) { in ProcessRecord()
|
D | InplaceSamplerClient.cpp | 71 const std::function<bool(Record*)>& record_callback, in StartPolling()
|
D | cmd_report.cpp | 377 bool ProcessRecord(std::unique_ptr<Record> record); 762 [this](std::unique_ptr<Record> record) { in ReadSampleTreeFromRecordFile() 774 bool ReportCommand::ProcessRecord(std::unique_ptr<Record> record) { in ProcessRecord()
|
D | cmd_dumprecord.cpp | 179 record_file_reader_->ReadDataSection([](std::unique_ptr<Record> record) { in DumpDataSection()
|
D | event_selection_set.cpp | 527 bool EventSelectionSet::PrepareToReadMmapEventData(const std::function<bool(Record*)>& callback) { in PrepareToReadMmapEventData() 590 std::vector<std::unique_ptr<Record>> records = in ReadMmapEventData()
|
/system/core/bootstat/ |
D | README.md | 13 -r, --record Record the timestamp of a named boot event 14 --record_boot_reason Record the reason why the device booted 15 --record_time_since_factory_reset Record the time since the device was reset
|
D | bootstat.rc | 38 # Record the time at which the user has successfully entered the pin to decrypt 65 # Record boot complete metrics. 67 # Record boot_complete and related stats (decryption, etc). 70 # Record the boot reason. 73 # Record time since factory reset.
|
/system/extras/simpleperf/demo/ |
D | README.md | 46 2. Record profiling data: 84 2. Record profiling data: 123 2. Record profiling data:
|