/system/extras/simpleperf/ |
D | record.h | 213 struct Record { struct 217 Record() : binary_(nullptr), own_binary_(false) {} in Record() argument 218 explicit Record(char* p) : header(p), binary_(p), own_binary_(false) {} in Record() function 219 Record(Record&& other) noexcept; 221 virtual ~Record() { in ~Record() argument 265 DISALLOW_COPY_AND_ASSIGN(Record); argument 268 struct MmapRecord : public Record { 291 struct Mmap2Record : public Record { 318 struct CommRecord : public Record { 336 struct ExitOrForkRecord : public Record { [all …]
|
D | record.cpp | 178 Record::Record(Record&& other) noexcept { in Record() function in Record 187 void Record::Dump(size_t indent) const { in Dump() 194 uint64_t Record::Timestamp() const { return sample_id.time_data.time; } in Timestamp() 195 uint32_t Record::Cpu() const { return sample_id.cpu_data.cpu; } in Cpu() 196 uint64_t Record::Id() const { return sample_id.id_data.id; } in Id() 198 void Record::UpdateBinary(char* new_binary) { in UpdateBinary() 206 MmapRecord::MmapRecord(const perf_event_attr& attr, char* p) : Record(p) { in MmapRecord() 258 Mmap2Record::Mmap2Record(const perf_event_attr& attr, char* p) : Record(p) { in Mmap2Record() 313 CommRecord::CommRecord(const perf_event_attr& attr, char* p) : Record(p) { in CommRecord() 375 : Record(p) { in ExitOrForkRecord() [all …]
|
D | record_file.h | 48 bool WriteRecord(const Record& record); 51 bool ReadDataSection(const std::function<void(const Record*)>& callback); 134 bool ReadDataSection(const std::function<bool(std::unique_ptr<Record>)>& callback); 139 bool ReadRecord(std::unique_ptr<Record>& record); 141 size_t GetAttrIndexOfRecord(const Record* record); 162 std::vector<std::unique_ptr<Record>> DataSection(); 170 std::unique_ptr<Record> ReadRecord(uint64_t* nbytes_read);
|
D | record_file_reader.cpp | 209 const std::function<bool(std::unique_ptr<Record>)>& callback) { in ReadDataSection() 210 std::unique_ptr<Record> record; in ReadDataSection() 222 bool RecordFileReader::ReadRecord(std::unique_ptr<Record>& record) { in ReadRecord() 242 std::unique_ptr<Record> RecordFileReader::ReadRecord(uint64_t* nbytes_read) { in ReadRecord() 243 char header_buf[Record::header_size()]; in ReadRecord() 244 if (!Read(header_buf, Record::header_size())) { in ReadRecord() 253 char header_buf[Record::header_size()]; in ReadRecord() 255 size_t bytes_to_read = header.size - Record::header_size(); in ReadRecord() 262 if (!Read(header_buf, Record::header_size())) { in ReadRecord() 277 memcpy(p.get(), header_buf, Record::header_size()); in ReadRecord() [all …]
|
D | record_file_writer.cpp | 125 bool RecordFileWriter::WriteRecord(const Record& record) { in WriteRecord() 140 char header_buf[Record::header_size()]; in WriteRecord() 143 uint32_t bytes_to_write = std::min(RECORD_SIZE_LIMIT - Record::header_size(), left_bytes); in WriteRecord() 144 header.size = bytes_to_write + Record::header_size(); in WriteRecord() 147 if (!WriteData(header_buf, Record::header_size())) { in WriteRecord() 157 header.size = Record::header_size(); in WriteRecord() 160 return WriteData(header_buf, Record::header_size()); in WriteRecord() 187 bool RecordFileWriter::ReadDataSection(const std::function<void(const Record*)>& callback) { in ReadDataSection() 195 if (!Read(record_buf.data(), Record::header_size())) { in ReadDataSection() 202 if (!Read(record_buf.data() + Record::header_size(), header.size - Record::header_size())) { in ReadDataSection() [all …]
|
D | RecordReadThread_test.cpp | 80 auto process_record = [&](std::unique_ptr<Record> record) { in TEST() 102 ASSERT_TRUE(reader->ReadDataSection([&](std::unique_ptr<Record> record) { in TEST() 129 static std::vector<std::unique_ptr<Record>> CreateFakeRecords( in CreateFakeRecords() 131 std::vector<std::unique_ptr<Record>> records; in CreateFakeRecords() 158 std::vector<std::unique_ptr<Record>> records = CreateFakeRecords(attr, 10, 0, 0); in TEST() 227 std::vector<std::unique_ptr<Record>> records_; 260 std::unique_ptr<Record> r = thread.GetRecord(); in TEST_F() 264 std::unique_ptr<Record>& expected = records_[record_index++]; in TEST_F() 294 auto read_record = [&](std::unique_ptr<Record>& r) { in TEST_F() 306 std::unique_ptr<Record> r; in TEST_F() [all …]
|
D | InplaceSamplerClient.h | 36 bool StartPolling(IOEventLoop& loop, const std::function<bool(Record*)>& record_callback, 51 std::function<bool(Record*)> record_callback_;
|
D | report_sample.proto | 5 // message Record(record_0) (having record_size_0 bytes) 7 // message Record(record_1) (having record_size_1 bytes) 10 // message Record(record_N) (having record_size_N bytes) 88 message Record { message
|
D | cmd_report_sample.cpp | 114 bool ProcessRecord(std::unique_ptr<Record> record); 120 bool WriteRecordInProtobuf(proto::Record& proto_record); 204 [this](std::unique_ptr<Record> record) { in Run() 327 proto::Record proto_record; in DumpProtobufReport() 451 proto::Record proto_record; in PrintMetaInfo() 472 bool ReportSampleCommand::ProcessRecord(std::unique_ptr<Record> record) { in ProcessRecord() 535 proto::Record proto_record; in PrintSampleRecordInProtobuf() 572 bool ReportSampleCommand::WriteRecordInProtobuf(proto::Record& proto_record) { in WriteRecordInProtobuf() 598 proto::Record proto_record; in PrintLostSituationInProtobuf() 621 proto::Record proto_record; in PrintFileInfoInProtobuf() [all …]
|
D | cmd_record.cpp | 280 bool ProcessRecord(Record* record); 281 bool ShouldOmitRecord(Record* record); 282 bool DumpMapsForRecord(Record* record); 283 bool SaveRecordForPostUnwinding(Record* record); 284 bool SaveRecordAfterUnwinding(Record* record); 285 bool SaveRecordWithoutUnwinding(Record* record); 289 void UpdateRecord(Record* record); 1178 bool RecordCommand::ProcessRecord(Record* record) { in ProcessRecord() 1210 bool RecordCommand::ShouldOmitRecord(Record* record) { in ShouldOmitRecord() 1227 bool RecordCommand::DumpMapsForRecord(Record* record) { in DumpMapsForRecord() [all …]
|
D | record_equal_test.h | 78 static void CheckRecordEqual(const Record& r1, const Record& r2) { in CheckRecordEqual()
|
D | event_selection_set.h | 138 bool PrepareToReadMmapEventData(const std::function<bool(Record*)>& callback); 189 std::function<bool(Record*)> record_callback_;
|
D | cmd_debug_unwind.cpp | 107 bool ProcessRecord(Record* record); 209 auto callback = [this](std::unique_ptr<Record> record) { in UnwindRecordFile() 226 bool DebugUnwindCommand::ProcessRecord(Record* record) { in ProcessRecord() 313 auto record_callback = [&](std::unique_ptr<Record> r) { in JoinCallChains()
|
D | record_test.cpp | 33 void CheckRecordMatchBinary(Record& record) { in CheckRecordMatchBinary() 34 std::vector<std::unique_ptr<Record>> records = in CheckRecordMatchBinary()
|
D | thread_tree.h | 29 struct Record; 125 void Update(const Record& record);
|
D | cmd_record_test.cpp | 136 std::vector<std::unique_ptr<Record>> records = reader->DataSection(); in TEST() 365 std::vector<std::unique_ptr<Record>> records = reader->DataSection(); in CheckKernelSymbol() 640 ASSERT_TRUE(reader->ReadDataSection([&](std::unique_ptr<Record> r) { in TEST() 699 ASSERT_TRUE(reader->ReadDataSection([&](std::unique_ptr<Record> r) { in TEST() 727 ASSERT_TRUE(reader->ReadDataSection([&](std::unique_ptr<Record> r) { in TEST() 756 ASSERT_TRUE(reader->ReadDataSection([&](std::unique_ptr<Record> r) { in TestRecordingApps()
|
D | cmd_trace_sched.cpp | 103 void ProcessRecord(Record& record); 209 auto callback = [this](std::unique_ptr<Record> record) { in ParseSchedEvents() 216 void TraceSchedCommand::ProcessRecord(Record& record) { in ProcessRecord()
|
D | cmd_report.cpp | 438 bool ProcessRecord(std::unique_ptr<Record> record); 439 void ProcessSampleRecordInTraceOffCpuMode(std::unique_ptr<Record> record, size_t attr_id); 851 [this](std::unique_ptr<Record> record) { in ReadSampleTreeFromRecordFile() 863 bool ReportCommand::ProcessRecord(std::unique_ptr<Record> record) { in ProcessRecord() 884 void ReportCommand::ProcessSampleRecordInTraceOffCpuMode(std::unique_ptr<Record> record, in ProcessSampleRecordInTraceOffCpuMode()
|
D | RecordReadThread.h | 139 std::unique_ptr<Record> GetRecord();
|
/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 | 44 # Record the time at which the user has successfully entered the pin to decrypt 77 # Record boot complete metrics. 79 # Record boot_complete and related stats (decryption, etc). 80 # Record the boot reason. 81 # Record time since factory reset.
|
/system/extras/simpleperf/doc/ |
D | README.md | 17 - [Record and report profiling data](#record-and-report-profiling-data) 18 - [Record and report call graph](#record-and-report-call-graph) 21 - [Record both on CPU time and off CPU time](#record-both-on-cpu-time-and-off-cpu-time) 41 - [Record call graphs](#record-call-graphs-in-record-cmd) 42 …- [Record both on CPU time and off CPU time](#record-both-on-cpu-time-and-off-cpu-time-in-record-c… 156 2. Record profiling data. 256 ### Record and report profiling data 261 # Cd to the directory of simpleperf scripts. Record perf.data. 307 ### Record and report call graph 312 # Record dwarf based call graphs: add "-g" in the -r option. [all …]
|
/system/extras/simpleperf/demo/ |
D | README.md | 56 2. Record profiling data: 88 2. Record profiling data: 120 2. Record profiling data:
|
/system/core/libmetricslogger/include/metricslogger/ |
D | metrics_logger.h | 65 void Record();
|
/system/core/libmetricslogger/ |
D | metrics_logger.cpp | 119 void ComplexEventLogger::Record() { in Record() function in android::metricslogger::ComplexEventLogger
|