Home
last modified time | relevance | path

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

12

/external/perfetto/src/traced/probes/ps/
Dprocess_stats_data_source_unittest.cc85 auto data_source = GetProcessStatsDataSource(DataSourceConfig()); in TEST_F() local
86 EXPECT_CALL(*data_source, ReadProcPidFile(42, "status")) in TEST_F()
89 EXPECT_CALL(*data_source, ReadProcPidFile(42, "cmdline")) in TEST_F()
92 data_source->OnPids({42}); in TEST_F()
107 auto data_source = GetProcessStatsDataSource(DataSourceConfig()); in TEST_F() local
108 EXPECT_CALL(*data_source, ReadProcPidFile(42, "status")) in TEST_F()
111 EXPECT_CALL(*data_source, ReadProcPidFile(42, "cmdline")) in TEST_F()
114 data_source->OnPids({42}); in TEST_F()
143 auto data_source = GetProcessStatsDataSource(ds_config); in TEST_F() local
145 EXPECT_CALL(*data_source, ReadProcPidFile(p, "status")) in TEST_F()
[all …]
/external/perfetto/src/traced/probes/initial_display_state/
Dinitial_display_state_data_source_unittest.cc66 auto data_source = GetInitialDisplayStateDataSource(DataSourceConfig()); in TEST_F() local
67 EXPECT_CALL(*data_source, ReadProperty("debug.tracing.screen_state")) in TEST_F()
69 EXPECT_CALL(*data_source, ReadProperty("debug.tracing.screen_brightness")) in TEST_F()
71 data_source->Start(); in TEST_F()
82 auto data_source = GetInitialDisplayStateDataSource(DataSourceConfig()); in TEST_F() local
83 EXPECT_CALL(*data_source, ReadProperty("debug.tracing.screen_state")) in TEST_F()
85 EXPECT_CALL(*data_source, ReadProperty("debug.tracing.screen_brightness")) in TEST_F()
87 data_source->Start(); in TEST_F()
98 auto data_source = GetInitialDisplayStateDataSource(DataSourceConfig()); in TEST_F() local
99 EXPECT_CALL(*data_source, ReadProperty("debug.tracing.screen_state")) in TEST_F()
[all …]
/external/perfetto/src/traced/probes/ftrace/
Dftrace_controller.cc158 for (const auto* data_source : data_sources_) in ~FtraceController() local
159 ftrace_config_muxer_->RemoveConfig(data_source->config_id()); in ~FtraceController()
299 for (const FtraceDataSource* data_source : data_sources_) { in GetDrainPeriodMs() local
300 if (data_source->config().drain_period_ms() < min_drain_period_ms) in GetDrainPeriodMs()
301 min_drain_period_ms = data_source->config().drain_period_ms(); in GetDrainPeriodMs()
335 for (FtraceDataSource* data_source : started_data_sources_) in Flush()
336 data_source->OnFtraceFlushComplete(flush_id); in Flush()
355 bool FtraceController::AddDataSource(FtraceDataSource* data_source) { in AddDataSource() argument
356 if (!ValidConfig(data_source->config())) in AddDataSource()
359 auto config_id = ftrace_config_muxer_->SetupConfig(data_source->config()); in AddDataSource()
[all …]
Dftrace_controller_unittest.cc188 std::unique_ptr<FtraceDataSource> data_source(new FtraceDataSource( in AddFakeDataSource() local
190 if (!AddDataSource(data_source.get())) in AddFakeDataSource()
192 return data_source; in AddFakeDataSource()
264 auto data_source = controller->AddFakeDataSource(config); in TEST() local
265 ASSERT_TRUE(data_source); in TEST()
274 ASSERT_TRUE(controller->StartDataSource(data_source.get())); in TEST()
291 data_source.reset(); in TEST()
344 auto data_source = controller->AddFakeDataSource(config); in TEST() local
347 ASSERT_TRUE(controller->StartDataSource(data_source.get())); in TEST()
360 data_source.reset(); in TEST()
[all …]
Dcpu_reader.cc275 for (FtraceDataSource* data_source : started_data_sources) { in ReadAndProcessBatch()
277 data_source->trace_writer(), data_source->mutable_metadata(), cpu_, in ReadAndProcessBatch()
278 data_source->parsing_config(), parsing_buf, pages_read, table_, in ReadAndProcessBatch()
/external/perfetto/src/profiling/memory/
Dheapprofd_producer.cc456 DataSource data_source(endpoint_->CreateTraceWriter(buffer_id)); in SetupDataSource() local
457 data_source.id = id; in SetupDataSource()
458 auto& cli_config = data_source.client_configuration; in SetupDataSource()
461 data_source.config = heapprofd_config; in SetupDataSource()
462 data_source.ds_config = ds_config; in SetupDataSource()
463 data_source.normalized_cmdlines = std::move(normalized_cmdlines.value()); in SetupDataSource()
464 data_source.stop_timeout_ms = ds_config.stop_timeout_ms() in SetupDataSource()
467 data_source.guardrail_config.cpu_start_secs = start_cputime_sec; in SetupDataSource()
468 data_source.guardrail_config.memory_guardrail_kb = in SetupDataSource()
470 data_source.guardrail_config.cpu_guardrail_sec = in SetupDataSource()
[all …]
Dheapprofd_producer.h275 void SetStartupProperties(DataSource* data_source);
276 void SignalRunningProcesses(DataSource* data_source);
/external/perfetto/src/traced/probes/
Dprobes_producer.cc163 std::unique_ptr<ProbesDataSource> data_source; in SetupDataSource() local
165 data_source = CreateFtraceDataSource(session_id, config); in SetupDataSource()
167 data_source = CreateInodeFileDataSource(session_id, config); in SetupDataSource()
169 data_source = CreateProcessStatsDataSource(session_id, config); in SetupDataSource()
171 data_source = CreateSysStatsDataSource(session_id, config); in SetupDataSource()
173 data_source = CreateAndroidPowerDataSource(session_id, config); in SetupDataSource()
175 data_source = CreateAndroidLogDataSource(session_id, config); in SetupDataSource()
177 data_source = CreatePackagesListDataSource(session_id, config); in SetupDataSource()
179 data_source = CreateMetatraceDataSource(session_id, config); in SetupDataSource()
181 data_source = CreateSystemInfoDataSource(session_id, config); in SetupDataSource()
[all …]
DBUILD.gn50 ":data_source",
81 source_set("data_source") {
/external/perfetto/src/traced/probes/sys_stats/
Dsys_stats_data_source_unittest.cc247 void WaitTick(SysStatsDataSource* data_source) { in WaitTick() argument
249 Poller(data_source, checkpoint); in WaitTick()
268 auto data_source = GetSysStatsDataSource(config); in TEST_F() local
270 WaitTick(data_source.get()); in TEST_F()
297 auto data_source = GetSysStatsDataSource(config); in TEST_F() local
299 WaitTick(data_source.get()); in TEST_F()
320 auto data_source = GetSysStatsDataSource(config); in TEST_F() local
322 WaitTick(data_source.get()); in TEST_F()
348 auto data_source = GetSysStatsDataSource(config); in TEST_F() local
350 WaitTick(data_source.get()); in TEST_F()
[all …]
/external/perfetto/src/traced/probes/filesystem/
Dinode_file_data_source_unittest.cc94 auto data_source = GetInodeFileDataSource(ds_config); in TEST_F() local
106 EXPECT_CALL(*data_source, FillInodeEntry(_, buf.st_ino, Eq(value))) in TEST_F()
109 data_source->OnInodes({{buf.st_ino, buf.st_dev}}); in TEST_F()
119 auto data_source = GetInodeFileDataSource(config); in TEST_F() local
133 EXPECT_CALL(*data_source, FillInodeEntry(_, buf.st_ino, Eq(value))); in TEST_F()
135 data_source->OnInodes({{buf.st_ino, buf.st_dev}}); in TEST_F()
142 auto data_source = GetInodeFileDataSource(config); in TEST_F() local
158 EXPECT_CALL(*data_source, FillInodeEntry(_, buf.st_ino, Eq(value))); in TEST_F()
160 data_source->OnInodes({{buf.st_ino, buf.st_dev}}); in TEST_F()
/external/image_io/src/gcontainer/
Dgcontainer.cc54 IStreamRefDataSource data_source(input_jpeg_stream); in ExtractFirstImageInJpeg() local
58 jpeg_scanner.Run(&data_source, &jpeg_info_builder); in ExtractFirstImageInJpeg()
59 data_source.Reset(); in ExtractFirstImageInJpeg()
103 IStreamDataSource data_source( in WriteImageAndFiles() local
105 data_source.TransferData(image_range, image_range.GetLength(), in WriteImageAndFiles()
/external/perfetto/src/traced/probes/system_info/
Dsystem_info_data_source_unittest.cc138 auto data_source = GetSystemInfoDataSource(); in TEST_F() local
139 EXPECT_CALL(*data_source, ReadFile("/proc/cpuinfo")) in TEST_F()
141 data_source->Start(); in TEST_F()
DBUILD.gn20 "..:data_source",
/external/image_io/includes/image_io/jpeg/
Djpeg_image_extractor.h20 JpegImageExtractor(const JpegInfo& jpeg_info, DataSource* data_source, in JpegImageExtractor() argument
23 data_source_(data_source), in JpegImageExtractor()
Djpeg_apple_depth_builder.h72 bool TransferData(DataSource *data_source, const DataRange& data_range);
Djpeg_scanner.h31 void Run(DataSource* data_source, JpegSegmentProcessor* segment_processor);
/external/image_io/src/jpeg/
Djpeg_apple_depth_builder.cc50 bool GetJpegInfo(int image_limit, DataSource* data_source, JpegInfo* info, in GetJpegInfo() argument
56 scanner.Run(data_source, &info_builder); in GetJpegInfo()
238 bool JpegAppleDepthBuilder::TransferData(DataSource* data_source, in TransferData() argument
242 data_source->TransferData(data_range, kBestDataSize, data_destination_); in TransferData()
Djpeg_scanner.cc18 void JpegScanner::Run(DataSource* data_source, in Run() argument
24 data_source_ = data_source; in Run()
/external/google-breakpad/src/common/windows/
Dpdb_source_line_writer.cc123 bool CreateDiaDataSourceInstance(CComPtr<IDiaDataSource> &data_source) { in CreateDiaDataSourceInstance() argument
124 if (SUCCEEDED(data_source.CoCreateInstance(CLSID_DiaSource))) { in CreateDiaDataSourceInstance()
150 reinterpret_cast<void **>(&data_source)))) { in CreateDiaDataSourceInstance()
185 CComPtr<IDiaDataSource> data_source; in Open() local
186 if (!CreateDiaDataSourceInstance(data_source)) { in Open()
197 if (FAILED(data_source->loadDataFromPdb(file.c_str()))) { in Open()
203 if (FAILED(data_source->loadDataForExe(file.c_str(), NULL, NULL))) { in Open()
210 if (FAILED(data_source->loadDataFromPdb(file.c_str()))) { in Open()
211 if (FAILED(data_source->loadDataForExe(file.c_str(), NULL, NULL))) { in Open()
224 if (FAILED(data_source->openSession(&session_))) { in Open()
/external/perfetto/src/tracing/test/
Dapi_integrationtest.cc785 auto* data_source = trace_config.add_data_sources(); in TEST_P() local
788 auto* ds_cfg = data_source->mutable_config(); in TEST_P()
798 data_source->add_producer_name_filter("all_producers_excluded"); in TEST_P()
810 data_source->clear_producer_name_filter(); in TEST_P()
2567 auto* data_source = &data_sources_["my_data_source"]; in TEST_P() local
2588 data_source->on_setup.Wait(); in TEST_P()
2589 EXPECT_EQ(data_source->config.legacy_config(), "test config"); in TEST_P()
2590 data_source->on_start.Wait(); in TEST_P()
2614 data_source->on_stop.Wait(); in TEST_P()
2643 auto* data_source = &data_sources_["my_data_source"]; in TEST_P() local
[all …]
/external/perfetto/src/tracing/internal/
Dtracing_muxer_impl.cc893 internal_state->data_source = rds.factory(); in SetupDataSource()
924 internal_state->data_source->OnSetup(setup_args); in SetupDataSource()
954 ds.internal_state->data_source->OnStart(start_args); in StartDataSource()
987 ds.internal_state->data_source->OnStop(stop_args); in StopDataSource_AsyncBegin()
1022 ds.internal_state->data_source.reset(); in StopDataSource_AsyncEnd()
1508 DataSourceState* data_source, in CreateTraceWriter() argument
1510 if (PERFETTO_UNLIKELY(data_source->interceptor_id)) { in CreateTraceWriter()
1517 auto& interceptor = interceptors_[data_source->interceptor_id - 1]; in CreateTraceWriter()
1522 ProducerImpl* producer = backends_[data_source->backend_id].producer.get(); in CreateTraceWriter()
1538 return service->CreateTraceWriter(data_source->buffer_id, in CreateTraceWriter()
/external/perfetto/src/traced/probes/metatrace/
DBUILD.gn21 "..:data_source",
/external/perfetto/include/perfetto/tracing/internal/
Ddata_source_internal.h104 std::unique_ptr<DataSourceBase> data_source; member
/external/perfetto/src/traced/probes/power/
DBUILD.gn18 "..:data_source",

12