Home
last modified time | relevance | path

Searched refs:sample (Results 1 – 25 of 41) sorted by relevance

12

/system/extras/simpleperf/
Dcmd_report.cpp59 virtual std::string Show(const SampleEntry& sample) const = 0;
60 void AdjustWidth(const SampleEntry& sample) { in AdjustWidth() argument
61 size_t size = Show(sample).size(); in AdjustWidth()
76 std::string Show(const SampleEntry& sample) const override { in Show()
77 uint64_t period = sample.period + sample.accumulated_period; in Show()
93 std::string Show(const SampleEntry& sample) const override { in Show()
94 uint64_t period = sample.period; in Show()
109 std::string Show(const SampleEntry& sample) const override { in Show()
110 return android::base::StringPrintf("%" PRId64, sample.sample_count); in Show()
131 std::string Show(const SampleEntry& sample) const override { in Show()
[all …]
Dsample_tree.cpp88 SampleEntry* sample = AllocateSample(value); in AddCallChainSample() local
89 callchain_sample_tree_.insert(sample); in AddCallChainSample()
90 return sample; in AddCallChainSample()
95 SampleEntry* sample = *it; in AddCallChainSample() local
97 if (std::find(callchain.begin(), callchain.end(), sample) != callchain.end()) { in AddCallChainSample()
98 return sample; in AddCallChainSample()
139 SampleEntry* sample = new SampleEntry(std::move(value)); in AllocateSample() local
140 sample_storage_.push_back(std::unique_ptr<SampleEntry>(sample)); in AllocateSample()
141 return sample; in AllocateSample()
144 void SampleTree::InsertCallChainForSample(SampleEntry* sample, in InsertCallChainForSample() argument
[all …]
Dsample_tree_test.cpp30 static void SampleMatchExpectation(const SampleEntry& sample, const ExpectedSampleInMap& expected, in SampleMatchExpectation() argument
33 ASSERT_TRUE(sample.thread != nullptr); in SampleMatchExpectation()
34 ASSERT_EQ(expected.pid, sample.thread->pid); in SampleMatchExpectation()
35 ASSERT_EQ(expected.tid, sample.thread->tid); in SampleMatchExpectation()
36 ASSERT_STREQ(expected.comm, sample.thread_comm); in SampleMatchExpectation()
37 ASSERT_TRUE(sample.map != nullptr); in SampleMatchExpectation()
38 ASSERT_EQ(expected.dso_name, sample.map->dso->Path()); in SampleMatchExpectation()
39 ASSERT_EQ(expected.map_start_addr, sample.map->start_addr); in SampleMatchExpectation()
40 ASSERT_EQ(expected.sample_count, sample.sample_count); in SampleMatchExpectation()
44 static void CheckSampleCallback(const SampleEntry& sample, in CheckSampleCallback() argument
[all …]
Dcallchain.cpp42 const SampleEntry* sample) { in FindMatchingNode() argument
44 if (MatchSampleByName(node->chain.front(), sample)) { in FindMatchingNode()
/system/core/metricsd/include/metrics/
Dmetrics_library.h42 virtual bool SendToUMA(const std::string& name, int sample,
44 virtual bool SendEnumToUMA(const std::string& name, int sample, int max) = 0;
45 virtual bool SendBoolToUMA(const std::string& name, bool sample) = 0;
46 virtual bool SendSparseToUMA(const std::string& name, int sample) = 0;
87 bool SendToUMA(const std::string& name, int sample,
105 bool SendEnumToUMA(const std::string& name, int sample, int max) override;
108 bool SendBoolToUMA(const std::string& name, bool sample) override;
114 bool SendSparseToUMA(const std::string& name, int sample) override;
Dmetrics_library_mock.h31 MOCK_METHOD5(SendToUMA, bool(const std::string& name, int sample,
33 MOCK_METHOD3(SendEnumToUMA, bool(const std::string& name, int sample,
35 MOCK_METHOD2(SendBoolToUMA, bool(const std::string& name, bool sample));
36 MOCK_METHOD2(SendSparseToUMA, bool(const std::string& name, int sample));
Dc_metrics_library.h36 const char* name, int sample,
41 const char* name, int sample, int max);
45 const char* name, int sample);
/system/extras/perfprofd/quipper/
Dperf_internals.h44 explicit PerfSampleCustodian(struct perf_sample& sample) in PerfSampleCustodian() argument
45 : sample_(sample) { in PerfSampleCustodian()
46 sample.raw_data = NULL; in PerfSampleCustodian()
47 sample.callchain = NULL; in PerfSampleCustodian()
48 sample.branch_stack = NULL; in PerfSampleCustodian()
Dperf_reader.cc253 struct perf_sample* sample) { in ReadReadInfo() argument
255 sample->read.time_enabled = *array++; in ReadReadInfo()
257 sample->read.time_running = *array++; in ReadReadInfo()
259 sample->read.one.id = *array++; in ReadReadInfo()
262 ByteSwap(&sample->read.time_enabled); in ReadReadInfo()
263 ByteSwap(&sample->read.time_running); in ReadReadInfo()
264 ByteSwap(&sample->read.one.id); in ReadReadInfo()
274 struct perf_sample* sample) { in ReadCallchain() argument
276 CHECK_EQ(static_cast<void*>(NULL), sample->callchain); in ReadCallchain()
291 sample->callchain = callchain; in ReadCallchain()
[all …]
/system/core/metricsd/
Dc_metrics_library.cc44 const char* name, int sample, in CMetricsLibrarySendToUMA() argument
49 return lib->SendToUMA(std::string(name), sample, min, max, nbuckets); in CMetricsLibrarySendToUMA()
53 const char* name, int sample, in CMetricsLibrarySendEnumToUMA() argument
58 return lib->SendEnumToUMA(std::string(name), sample, max); in CMetricsLibrarySendEnumToUMA()
62 const char* name, int sample) { in CMetricsLibrarySendSparseToUMA() argument
66 return lib->SendSparseToUMA(std::string(name), sample); in CMetricsLibrarySendSparseToUMA()
Dmetrics_library.cc174 const std::string& name, int sample, int min, int max, int nbuckets) { in SendToUMA() argument
176 metricsd_proxy_->recordHistogram(String16(name.c_str()), sample, min, in SendToUMA()
182 int sample, in SendEnumToUMA() argument
185 metricsd_proxy_->recordLinearHistogram(String16(name.c_str()), sample, in SendEnumToUMA()
190 bool MetricsLibrary::SendBoolToUMA(const std::string& name, bool sample) { in SendBoolToUMA() argument
193 sample ? 1 : 0, 2) in SendBoolToUMA()
197 bool MetricsLibrary::SendSparseToUMA(const std::string& name, int sample) { in SendSparseToUMA() argument
199 metricsd_proxy_->recordSparseHistogram(String16(name.c_str()), sample) in SendSparseToUMA()
Dmetrics_client.cc93 int sample; in SendStats() local
95 sample = static_cast<int>(ParseDouble(argv[name_index + 1]) * 1000.0); in SendStats()
97 sample = ParseInt(argv[name_index + 1]); in SendStats()
103 metrics_lib.SendSparseToUMA(name, sample); in SendStats()
106 metrics_lib.SendEnumToUMA(name, sample, max); in SendStats()
111 metrics_lib.SendToUMA(name, sample, min, max, nbuckets); in SendStats()
Dmetrics_collector_test.cc60 void ExpectSample(const std::string& name, int sample) { in ExpectSample() argument
61 EXPECT_CALL(metrics_lib_, SendToUMA(name, sample, _, _, _)) in ExpectSample()
Dmetrics_collector.h139 void SendSample(const std::string& name, int sample,
145 void SendLinearSample(const std::string& name, int sample,
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
Devent.h180 struct sample_event sample; member
194 struct perf_sample *sample,
215 struct perf_sample *sample,
219 struct perf_sample *sample,
223 struct perf_sample *sample,
227 struct perf_sample *sample,
231 struct perf_sample *sample,
235 struct perf_sample *sample,
239 struct perf_sample *sample,
246 struct perf_sample *sample);
[all …]
Dbuild-id.h16 struct perf_sample *sample, struct perf_evsel *evsel,
/system/core/metricsd/uploader/
Dbn_metricsd_impl.cc39 const String16& name, int sample, int min, int max, int nbuckets) { in recordHistogram() argument
47 histogram->Add(sample); in recordHistogram()
53 int sample, in recordLinearHistogram() argument
62 histogram->Add(sample); in recordLinearHistogram()
67 Status BnMetricsdImpl::recordSparseHistogram(const String16& name, int sample) { in recordSparseHistogram() argument
75 histogram->Add(sample); in recordSparseHistogram()
Dbn_metricsd_impl.h30 int sample,
37 int sample,
42 int sample) override;
Dupload_service_test.cc67 void SendSparseHistogram(const std::string& name, int sample) { in SendSparseHistogram() argument
70 histogram->Add(sample); in SendSparseHistogram()
74 const std::string& name, int sample, int min, int max, int nbuckets) { in SendHistogram() argument
77 histogram->Add(sample); in SendHistogram()
/system/core/metricsd/aidl/android/brillo/metrics/
DIMetricsd.aidl20 oneway void recordHistogram(String name, int sample, int min, int max, in recordHistogram() argument
22 oneway void recordLinearHistogram(String name, int sample, int max); in recordLinearHistogram() argument
23 oneway void recordSparseHistogram(String name, int sample); in recordSparseHistogram() argument
/system/media/audio_utils/
Dchannels.c24 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()
/system/media/audio_utils/include/audio_utils/
Dprimitives.h583 static inline int16_t clamp16(int32_t sample) in clamp16() argument
585 if ((sample>>15) ^ (sample>>31)) in clamp16()
586 sample = 0x7FFF ^ (sample>>31); in clamp16()
587 return sample; in clamp16()
/system/connectivity/shill/
Dmock_metrics.h57 MOCK_METHOD3(SendEnumToUMA, bool(const std::string& name, int sample,
59 MOCK_METHOD5(SendToUMA, bool(const std::string& name, int sample, int min,
61 MOCK_METHOD2(SendSparseToUMA, bool(const std::string& name, int sample));
/system/core/metricsd/uploader/proto/
Dhistogram_event.proto32 // The sum of all the sample values.
33 // Together with the total count of the sample values, this allows us to
34 // compute the average value. The count of all sample values is just the sum
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/
Devent.h190 struct sample_event sample; member
200 …(struct perf_tool * tool, union perf_event * event, struct perf_sample * sample, struct machine * …

12