/system/extras/simpleperf/ |
D | sample_tree.h | 98 EntryT* sample = CreateSample(r, in_kernel, &acc_info); in ProcessSampleRecord() local 99 if (sample == nullptr) { in ProcessSampleRecord() 108 const ThreadEntry* thread = GetThreadOfSample(sample); in ProcessSampleRecord() 126 callchain.push_back(sample); in ProcessSampleRecord() 150 CreateCallChainSample(thread, sample, ip, in_kernel, callchain, acc_info); in ProcessSampleRecord() 165 EntryT* sample = callchain[0]; in ProcessSampleRecord() local 168 if (added_set.find(sample) != added_set.end()) { in ProcessSampleRecord() 171 added_set.insert(sample); in ProcessSampleRecord() 172 InsertCallChainForSample(sample, callchain, acc_info); in ProcessSampleRecord() 173 UpdateCallChainParentInfo(sample, parent); in ProcessSampleRecord() [all …]
|
D | SampleDisplayer.h | 31 std::string DisplayAccumulatedOverhead(const EntryT* sample, in DisplayAccumulatedOverhead() argument 33 uint64_t period = sample->period + sample->accumulated_period; in DisplayAccumulatedOverhead() 40 std::string DisplayAccumulatedPeriod(const EntryT* sample) { in DisplayAccumulatedPeriod() argument 41 return android::base::StringPrintf("%" PRIu64, sample->period + sample->accumulated_period); in DisplayAccumulatedPeriod() 45 std::string DisplaySelfOverhead(const EntryT* sample, const InfoT* info) { in DisplaySelfOverhead() argument 46 uint64_t period = sample->period; in DisplaySelfOverhead() 54 std::string function_name(const EntryT* sample) { \ 55 return android::base::StringPrintf("%" PRIu64, sample->display_part); \ 60 std::string function_name(const EntryT* sample) { \ 61 return android::base::StringPrintf("0x%" PRIx64, sample->display_part); \ [all …]
|
D | report_sample.proto | 20 // Wall clock time for current sample. 40 // Simpleperf generates one sample whenever a specified amount of events happen 41 // while running a monitored thread. So each sample belongs to one event type. 47 // and sample lost rate. 48 // event_count field shows the count of the events (belong to the sample's event type) 49 // that have happened since last sample (belong to the sample's event type) for the 50 // same thread. However, if there are lost samples between current sample and previous 51 // sample, the event_count is the count of events from the last lost sample. 54 // An index in meta_info.event_type, shows which event type current sample belongs to. 90 Sample sample = 1; field
|
D | sample_tree_test.cpp | 96 static void SampleMatchExpectation(const SampleEntry& sample, in SampleMatchExpectation() argument 100 ASSERT_EQ(expected.pid, sample.pid); in SampleMatchExpectation() 101 ASSERT_EQ(expected.tid, sample.tid); in SampleMatchExpectation() 102 ASSERT_STREQ(expected.thread_comm, sample.thread_comm); in SampleMatchExpectation() 103 ASSERT_EQ(expected.dso_name, sample.dso_name); in SampleMatchExpectation() 104 ASSERT_EQ(expected.map_start_addr, sample.map_start_addr); in SampleMatchExpectation() 105 ASSERT_EQ(expected.sample_count, sample.sample_count); in SampleMatchExpectation()
|
D | cmd_report.cpp | 188 std::unique_ptr<SampleEntry> sample( in CreateBranchSample() local 191 sample->branch_from.map = from_map; in CreateBranchSample() 192 sample->branch_from.symbol = from_symbol; in CreateBranchSample() 193 sample->branch_from.vaddr_in_file = from_vaddr_in_file; in CreateBranchSample() 194 sample->branch_from.flags = item.flags; in CreateBranchSample() 195 return InsertSample(std::move(sample)); in CreateBranchSample() 198 SampleEntry* CreateCallChainSample(const ThreadEntry* thread, const SampleEntry* sample, in CreateCallChainSample() argument 211 sample->time, 0, acc_info, 0, thread, map, symbol, vaddr_in_file)); in CreateCallChainSample() 212 callchain_sample->thread_comm = sample->thread_comm; in CreateCallChainSample() 216 const ThreadEntry* GetThreadOfSample(SampleEntry* sample) override { in GetThreadOfSample() argument [all …]
|
D | cmd_kmem.cpp | 87 static std::string DisplayFragment(const SlabSample* sample) { in DisplayFragment() argument 89 sample->bytes_alloc - sample->bytes_req); in DisplayFragment() 185 SlabSample* sample = in CreateSample() local 189 std::make_pair(ptr, std::make_pair(r.cpu_data.cpu, sample))); in CreateSample() 192 return sample; in CreateSample() 197 SlabSample* sample = it->second.second; in CreateSample() local 199 sample->cross_cpu_allocations++; in CreateSample() 215 const SlabSample* sample, uint64_t ip, bool in_kernel, in CreateCallChainSample() argument 224 new SlabSample(symbol, sample->ptr, acc_info.bytes_req, in CreateCallChainSample() 225 acc_info.bytes_alloc, 1, sample->gfp_flags, 0)), in CreateCallChainSample() [all …]
|
D | cmd_report_sample.cpp | 337 auto& sample = proto_record.sample(); in DumpProtobufReport() local 340 FprintIndented(report_fp_, 1, "event_type_id: %zu\n", sample.event_type_id()); in DumpProtobufReport() 341 FprintIndented(report_fp_, 1, "time: %" PRIu64 "\n", sample.time()); in DumpProtobufReport() 342 FprintIndented(report_fp_, 1, "event_count: %" PRIu64 "\n", sample.event_count()); in DumpProtobufReport() 343 FprintIndented(report_fp_, 1, "thread_id: %d\n", sample.thread_id()); in DumpProtobufReport() 345 for (int i = 0; i < sample.callchain_size(); ++i) { in DumpProtobufReport() 346 const proto::Sample_CallChainEntry& callchain = sample.callchain(i); in DumpProtobufReport() 532 proto::Sample* sample = proto_record.mutable_sample(); in PrintSampleRecordInProtobuf() local 533 sample->set_time(r.time_data.time); in PrintSampleRecordInProtobuf() 534 sample->set_event_count(r.period_data.period); in PrintSampleRecordInProtobuf() [all …]
|
D | callchain.h | 107 const std::vector<std::unique_ptr<NodeT>>& nodes, const EntryT* sample, in FindMatchingNode() 110 if (is_same_sample(node->chain.front(), sample)) { in FindMatchingNode()
|
/system/extras/simpleperf/scripts/ |
D | report_sample.py | 39 sample = lib.GetNextSample() 40 if sample is None: 47 sec = sample.time / 1000000000 48 usec = (sample.time - sec * 1000000000) / 1000 49 print('%s\t%d [%03d] %d.%06d:\t\t%d %s:' % (sample.thread_comm, 50 sample.tid, sample.cpu, sec, 51 usec, sample.period, event.name)) 52 print('%16x\t%s (%s)' % (sample.ip, symbol.symbol_name, symbol.dso_name))
|
D | pprof_proto_generator.py | 66 print('%d samples' % len(p.sample)) 67 for i in range(len(p.sample)): 69 self.show_sample(p.sample[i], sub_space) 102 def show_sample(self, sample, space=''): argument 104 for i in range(len(sample.location_id)): 105 print('%slocation_id[%d]: id %d' % (space, i, sample.location_id[i])) 106 self.show_location_id(sample.location_id[i], sub_space) 107 for i in range(len(sample.value)): 108 print('%svalue[%d] = %d' % (space, i, sample.value[i])) 109 for i in range(len(sample.label)): [all …]
|
D | annotate.py | 205 sample = lib.GetNextSample() 206 if sample is None: 209 if not self._filter_sample(sample): 224 def _filter_sample(self, sample): argument 227 if sample.thread_comm not in self.comm_filter: 230 if sample.pid not in self.pid_filter: 233 if sample.tid not in self.tid_filter: 260 sample = lib.GetNextSample() 261 if sample is None: 264 if not self._filter_sample(sample): [all …]
|
D | test.py | 997 sample = self.report_lib.GetCurrentSample() 998 if sample.ip == 0x4004ff and sample.time == 7637889424953: 1000 self.assertEqual(sample.pid, 15926) 1001 self.assertEqual(sample.tid, 15926) 1002 self.assertEqual(sample.thread_comm, 't2') 1003 self.assertEqual(sample.cpu, 5) 1004 self.assertEqual(sample.period, 694614) 1040 sample = self.report_lib.GetCurrentSample() 1041 total_period += sample.period 1043 sleep_function_period += sample.period [all …]
|
/system/extras/simpleperf/scripts/inferno/ |
D | data_types.py | 36 def add_callchain(self, callchain, symbol, sample): argument 37 self.name = sample.thread_comm 39 self.num_events += sample.period 48 self.flamegraph.add_callchain(chain, sample.period) 72 def add_sample(self, sample, symbol, callchain): argument 73 thread = self.get_thread(sample.tid, sample.pid) 74 thread.add_callchain(callchain, symbol, sample) 77 self.num_events += sample.period
|
D | inferno.py | 128 sample = lib.GetNextSample() 129 if sample is None: 134 if sample_filter_fn and not sample_filter_fn(sample, symbol, callchain): 136 process.add_sample(sample, symbol, callchain) 343 def filter_fn(sample, _symbol, _callchain): argument 344 sample.pid = sample.tid = process.pid
|
/system/extras/boottime_tools/bootio/ |
D | bootio_collector.cpp | 66 int ReadIo(char *filename, AppSample *sample) { in ReadIo() argument 82 sample->set_rchar(rchar); in ReadIo() 83 sample->set_wchar(wchar); in ReadIo() 84 sample->set_syscr(syscr); in ReadIo() 85 sample->set_syscw(syscw); in ReadIo() 86 sample->set_readbytes(readbytes); in ReadIo() 87 sample->set_writebytes(writebytes); in ReadIo() 112 int ReadStat(char *filename, AppSample *sample) { in ReadStat() argument 139 sample->set_utime(utime); in ReadStat() 140 sample->set_stime(stime); in ReadStat() [all …]
|
/system/extras/power_profile/gps_on/Application/ |
D | build.gradle | 21 // The sample build uses multiple directories to 23 // the main sample code. 25 'main', // main sample code; look here for the interesting stuff. 27 'template'] // boilerplate code that is generated by the sample template process
|
/system/extras/power_profile/camera_avg/Application/ |
D | build.gradle | 24 // The sample build uses multiple directories to 26 // the main sample code. 28 'main', // main sample code; look here for the interesting stuff. 30 'template'] // boilerplate code that is generated by the sample template process
|
/system/extras/power_profile/camera_flashlight/Application/ |
D | build.gradle | 24 // The sample build uses multiple directories to 26 // the main sample code. 28 'main', // main sample code; look here for the interesting stuff. 30 'template'] // boilerplate code that is generated by the sample template process
|
/system/media/audio_utils/include/audio_utils/ |
D | primitives.h | 749 static inline int16_t clamp16(int32_t sample) in clamp16() argument 751 if ((sample>>15) ^ (sample>>31)) in clamp16() 752 sample = 0x7FFF ^ (sample>>31); in clamp16() 753 return sample; in clamp16() 759 static inline int32_t clamp32(int64_t sample) in clamp32() argument 761 if ((sample>>31) ^ (sample>>63)) in clamp32() 762 sample = 0x7fffffff ^ (sample>>63); in clamp32() 763 return sample; in clamp32()
|
D | sample.h | 34 float float_from_sample(sample_minifloat_t sample);
|
/system/extras/simpleperf/doc/ |
D | executable_commands_reference.md | 30 - [Group samples into sample entries](#group-samples-into-sample-entries) 56 4. Each time a given number of events happen, the kernel dumps a sample to the mapped buffers. 75 The report-sample command: reports each sample in perf.data, used for supporting integration of 327 The record command is used to dump samples of the profiled processes. Each sample can contain 328 information like the time at which the sample was generated, the number of events since last 329 sample, the program counter of a thread, the call chain of a thread. 335 # Record on process 7394 for 10 seconds, using default event (cpu-cycles), using default sample 385 # Record with sample frequency 1000: sample 1000 times every second running. 388 # Record with sample period 100000: sample 1 time every 100000 events. 393 used for generating samples (default is 25%), and decreases the max allowed sample frequency when [all …]
|
D | inferno.md | 10 . You can see a sample report generated with Inferno 20 ![flamegraph sample](./main_thread_flamegraph.png) 35 ![flamegraph sample](./bottleneck.png) 63 You can select how long to sample for, the color of the node and many other 92 If simpleperf reports a lot of lost sample it is probably because you are
|
/system/core/adb/fastdeploy/ |
D | Android.bp | 63 "testdata/sample.apk", 64 "testdata/sample.cd",
|
/system/media/audio_utils/ |
D | channels.c | 24 static inline int32_t clamp24(int32_t sample) in clamp24() argument 26 if ((sample>>23) ^ (sample>>31)) { in clamp24() 27 sample = 0x007FFFFF ^ (sample>>31); in clamp24() 29 return sample; in clamp24()
|
D | primitives.c | 167 const int16_t sample = *--src; in memcpy_to_p24_from_i16() local 169 dst[0] = sample >> 8; in memcpy_to_p24_from_i16() 170 dst[1] = sample; in memcpy_to_p24_from_i16() 174 dst[1] = sample; in memcpy_to_p24_from_i16() 175 dst[2] = sample >> 8; in memcpy_to_p24_from_i16() 321 const float sample = *src++; in memcpy_to_float_from_float_with_clamping() local 322 *dst++ = fmax(-absMax, fmin(absMax, sample)); in memcpy_to_float_from_float_with_clamping()
|