Home
last modified time | relevance | path

Searched refs:Record (Results 1 – 25 of 39) sorted by relevance

12

/system/extras/simpleperf/
Drecord.h216 struct Record { struct
220 Record() : binary_(nullptr), own_binary_(false) {} in Record() argument
221 explicit Record(char* p) : header(p), binary_(p), own_binary_(false) {} in Record() argument
222 Record(Record&& other) noexcept;
224 virtual ~Record() { in ~Record() argument
268 DISALLOW_COPY_AND_ASSIGN(Record); argument
271 struct MmapRecord : public Record {
294 struct Mmap2Record : public Record {
321 struct CommRecord : public Record {
339 struct ExitOrForkRecord : public Record {
[all …]
Drecord.cpp181 Record::Record(Record&& other) noexcept { in Record() function in Record
190 void Record::Dump(size_t indent) const { in Dump()
197 uint64_t Record::Timestamp() const { return sample_id.time_data.time; } in Timestamp()
198 uint32_t Record::Cpu() const { return sample_id.cpu_data.cpu; } in Cpu()
199 uint64_t Record::Id() const { return sample_id.id_data.id; } in Id()
201 void Record::UpdateBinary(char* new_binary) { in UpdateBinary()
209 MmapRecord::MmapRecord(const perf_event_attr& attr, char* p) : Record(p) { in MmapRecord()
261 Mmap2Record::Mmap2Record(const perf_event_attr& attr, char* p) : Record(p) { in Mmap2Record()
316 CommRecord::CommRecord(const perf_event_attr& attr, char* p) : Record(p) { in CommRecord()
378 : Record(p) { in ExitOrForkRecord()
[all …]
Drecord_file.h49 bool WriteRecord(const Record& record);
52 bool ReadDataSection(const std::function<void(const Record*)>& callback);
136 bool ReadDataSection(const std::function<bool(std::unique_ptr<Record>)>& callback);
141 bool ReadRecord(std::unique_ptr<Record>& record);
143 size_t GetAttrIndexOfRecord(const Record* record);
168 std::vector<std::unique_ptr<Record>> DataSection();
178 std::unique_ptr<Record> ReadRecord();
Drecord_file_writer.cpp125 bool RecordFileWriter::WriteRecord(const Record& record) { in WriteRecord()
144 char header_buf[Record::header_size()]; in WriteRecord()
147 uint32_t bytes_to_write = std::min(RECORD_SIZE_LIMIT - Record::header_size(), left_bytes); in WriteRecord()
148 header.size = bytes_to_write + Record::header_size(); in WriteRecord()
151 if (!WriteData(header_buf, Record::header_size())) { in WriteRecord()
161 header.size = Record::header_size(); in WriteRecord()
164 return WriteData(header_buf, Record::header_size()); in WriteRecord()
191 bool RecordFileWriter::ReadDataSection(const std::function<void(const Record*)>& callback) { in ReadDataSection()
199 if (!Read(record_buf.data(), Record::header_size())) { in ReadDataSection()
206 if (!Read(record_buf.data() + Record::header_size(), header.size - Record::header_size())) { in ReadDataSection()
[all …]
Drecord_file_reader.cpp222 const std::function<bool(std::unique_ptr<Record>)>& callback) { in ReadDataSection()
223 std::unique_ptr<Record> record; in ReadDataSection()
235 bool RecordFileReader::ReadRecord(std::unique_ptr<Record>& record) { in ReadRecord()
255 std::unique_ptr<Record> RecordFileReader::ReadRecord() { in ReadRecord()
256 char header_buf[Record::header_size()]; in ReadRecord()
257 if (!Read(header_buf, Record::header_size())) { in ReadRecord()
266 char header_buf[Record::header_size()]; in ReadRecord()
268 size_t bytes_to_read = header.size - Record::header_size(); in ReadRecord()
275 if (!Read(header_buf, Record::header_size())) { in ReadRecord()
290 memcpy(p.get(), header_buf, Record::header_size()); in ReadRecord()
[all …]
DRecordReadThread_test.cpp81 auto process_record = [&](std::unique_ptr<Record> record) { in TEST()
110 ASSERT_TRUE(reader->ReadDataSection([&](std::unique_ptr<Record> record) { in TEST()
146 static std::vector<std::unique_ptr<Record>> CreateFakeRecords( in CreateFakeRecords()
148 std::vector<std::unique_ptr<Record>> records; in CreateFakeRecords()
175 std::vector<std::unique_ptr<Record>> records = CreateFakeRecords(attr, 10, 0, 0); in TEST()
245 std::vector<std::unique_ptr<Record>> records_;
278 std::unique_ptr<Record> r = thread.GetRecord(); in TEST_F()
282 std::unique_ptr<Record>& expected = records_[record_index++]; in TEST_F()
312 auto read_record = [&](std::unique_ptr<Record>& r) { in TEST_F()
324 std::unique_ptr<Record> r; in TEST_F()
[all …]
Dreport_sample.proto5 // 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
Dcmd_report_sample.cpp116 bool ProcessRecord(std::unique_ptr<Record> record);
123 bool WriteRecordInProtobuf(proto::Record& proto_record);
207 [this](std::unique_ptr<Record> record) { in Run()
330 proto::Record proto_record; in DumpProtobufReport()
445 proto::Record proto_record; in PrintMetaInfo()
466 bool ReportSampleCommand::ProcessRecord(std::unique_ptr<Record> record) { in ProcessRecord()
531 proto::Record proto_record; in PrintSampleRecordInProtobuf()
568 bool ReportSampleCommand::WriteRecordInProtobuf(proto::Record& proto_record) { in WriteRecordInProtobuf()
594 proto::Record proto_record; in PrintLostSituationInProtobuf()
617 proto::Record proto_record; in PrintFileInfoInProtobuf()
[all …]
Dcmd_record.cpp322 bool ProcessRecord(Record* record);
323 bool ShouldOmitRecord(Record* record);
324 bool DumpMapsForRecord(Record* record);
325 bool SaveRecordForPostUnwinding(Record* record);
326 bool SaveRecordAfterUnwinding(Record* record);
327 bool SaveRecordWithoutUnwinding(Record* record);
331 void UpdateRecord(Record* record);
1277 bool RecordCommand::ProcessRecord(Record* record) { in ProcessRecord()
1317 bool RecordCommand::ShouldOmitRecord(Record* record) { in ShouldOmitRecord()
1334 bool RecordCommand::DumpMapsForRecord(Record* record) { in DumpMapsForRecord()
[all …]
Drecord_equal_test.h78 static void CheckRecordEqual(const Record& r1, const Record& r2) { in CheckRecordEqual()
Dprofcollect.cpp39 bool Record(const std::filesystem::path& output, in Record() function
Dcmd_debug_unwind.cpp107 bool ProcessRecord(Record* record);
210 auto callback = [this](std::unique_ptr<Record> record) { in UnwindRecordFile()
227 bool DebugUnwindCommand::ProcessRecord(Record* record) { in ProcessRecord()
314 auto record_callback = [&](std::unique_ptr<Record> r) { in JoinCallChains()
Drecord_test.cpp33 void CheckRecordMatchBinary(Record& record) { in CheckRecordMatchBinary()
34 std::vector<std::unique_ptr<Record>> records = in CheckRecordMatchBinary()
Dthread_tree.h29 struct Record;
141 void Update(const Record& record);
Devent_selection_set.h167 bool PrepareToReadMmapEventData(const std::function<bool(Record*)>& callback);
213 std::function<bool(Record*)> record_callback_;
Dcmd_api_test.cpp53 ASSERT_TRUE(reader->ReadDataSection([&](std::unique_ptr<Record> r) { in CheckPerfDataFile()
Dcmd_trace_sched.cpp104 void ProcessRecord(Record& record);
199 auto callback = [this](std::unique_ptr<Record> record) { in ParseSchedEvents()
206 void TraceSchedCommand::ProcessRecord(Record& record) { in ProcessRecord()
/system/core/bootstat/
DREADME.md13 -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
Dbootstat.rc44 # Record the time at which the user has successfully entered the pin to decrypt
76 # Record boot complete metrics.
78 # Record boot_complete and related stats (decryption, etc).
79 # Record the boot reason.
80 # Record time since factory reset.
/system/extras/simpleperf/include/
Dsimpleperf_profcollect.h26 bool Record(const std::filesystem::path& output,
/system/extras/simpleperf/doc/
Dscripts_reference.md26 # Record an Android application.
29 # Record an Android application with Java code compiled into native instructions.
32 # Record the launch of an Activity of an Android application.
35 # Record a native process.
38 # Record a native process given its pid.
41 # Record a command.
45 # Record an Android application, and use -r to send custom options to the record command.
49 # Record both on CPU time and off CPU time.
207 # Record a native program and generate flamegraph.
Dexecutable_commands_reference.md24 - [Record call graphs](#record-call-graphs)
25 - [Record both on CPU time and off CPU time](#record-both-on-cpu-time-and-off-cpu-time)
335 # Record on process 7394 for 10 seconds, using default event (cpu-cycles), using default sample
347 # Record using event instructions.
350 # Record using task-clock, which shows the passed CPU time in nanoseconds.
359 # Record process 11904 and 11905.
362 # Record thread 11904 and 11905.
365 # Record a child process running `ls`.
368 # Record the process of an Android application. This only works for debuggable apps on non-rooted
372 # Record system wide.
[all …]
Dandroid_application_profiling.md8 2. Record profiling data.
17 - [Record and report profiling data](#record-and-report-profiling-data)
18 - [Record and report call graph](#record-and-report-call-graph)
22 - [Record both on CPU time and off CPU time](#record-both-on-cpu-time-and-off-cpu-time)
137 ## Record and report profiling data
142 # Cd to the directory of simpleperf scripts. Record perf.data.
188 ## Record and report call graph
193 # Record dwarf based call graphs: add "-g" in the -r option.
197 # Record stack frame based call graphs: add "--call-graph fp" in the -r option.
258 ## Record both on CPU time and off CPU time
/system/extras/profcollectd/libprofcollectd/
Dsimpleperf_etm_provider.cpp72 return simpleperf::etm::Record(outputFile, samplingPeriod); in Trace()
/system/extras/simpleperf/demo/
DREADME.md61 2. Record profiling data:
93 2. Record profiling data:
125 2. Record profiling data:

12