Lines Matching refs:trace_config
257 void SetTraceConfigForBugreportTest(TraceConfig* trace_config) { in SetTraceConfigForBugreportTest() argument
258 trace_config->add_buffers()->set_size_kb(4096); in SetTraceConfigForBugreportTest()
259 trace_config->set_duration_ms(60000); // Will never hit this. in SetTraceConfigForBugreportTest()
260 trace_config->set_bugreport_score(10); in SetTraceConfigForBugreportTest()
261 auto* ds_config = trace_config->add_data_sources()->mutable_config(); in SetTraceConfigForBugreportTest()
315 TraceConfig trace_config; in TEST_F() local
316 trace_config.add_buffers()->set_size_kb(1024); in TEST_F()
317 trace_config.set_duration_ms(3000); in TEST_F()
319 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
328 helper.StartTracing(trace_config); in TEST_F()
362 TraceConfig trace_config; in TEST_F() local
363 trace_config.add_buffers()->set_size_kb(32); in TEST_F()
364 trace_config.set_duration_ms(kTestTimeoutMs); in TEST_F()
366 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
373 helper.StartTracing(trace_config); in TEST_F()
425 TraceConfig trace_config; in TEST_F() local
426 trace_config.add_buffers()->set_size_kb(1024); in TEST_F()
427 trace_config.set_unique_session_name("kmem_activity_test"); in TEST_F()
429 auto* ftrace_ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
441 auto* sys_stats_ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
481 auto* trigger_cfg = trace_config.mutable_trigger_config(); in TEST_F()
491 helper.StartTracing(trace_config); in TEST_F()
579 TraceConfig trace_config; in TEST_F() local
580 trace_config.add_buffers()->set_size_kb(1024); in TEST_F()
582 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
589 helper.StartTracing(trace_config); in TEST_F()
631 TraceConfig trace_config; in TEST_F() local
632 trace_config.add_buffers()->set_size_kb(128); in TEST_F()
633 trace_config.set_duration_ms(3000); in TEST_F()
635 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
648 helper.StartTracing(trace_config); in TEST_F()
680 TraceConfig trace_config; in TEST_F() local
681 trace_config.add_buffers()->set_size_kb(1024); in TEST_F()
682 trace_config.set_duration_ms(200); in TEST_F()
684 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
696 helper.StartTracing(trace_config); in TEST_F()
721 TraceConfig trace_config; in TEST_F() local
722 trace_config.add_buffers()->set_size_kb(4096 * 10); in TEST_F()
723 trace_config.set_duration_ms(500); in TEST_F()
725 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
737 helper.StartTracing(trace_config); in TEST_F()
772 TraceConfig trace_config; in TEST_F() local
773 trace_config.add_buffers()->set_size_kb(4096 * 10); in TEST_F()
774 trace_config.set_duration_ms(100); in TEST_F()
775 trace_config.set_flush_timeout_ms(1); in TEST_F()
776 trace_config.set_data_source_stop_timeout_ms(1); in TEST_F()
778 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
795 helper.StartTracing(trace_config); in TEST_F()
814 trace_config.set_duration_ms(1); in TEST_F()
816 helper.StartTracing(trace_config, base::ScopedFile()); in TEST_F()
829 TraceConfig trace_config; in TEST_F() local
830 trace_config.add_buffers()->set_size_kb(1024); in TEST_F()
831 trace_config.set_duration_ms(10000); // Max timeout, session is ended before. in TEST_F()
832 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
844 helper.StartTracing(trace_config); in TEST_F()
874 TraceConfig trace_config; in TEST_F() local
875 trace_config.add_buffers()->set_size_kb(1024); in TEST_F()
876 trace_config.set_duration_ms(250); in TEST_F()
877 trace_config.set_write_into_file(true); in TEST_F()
878 trace_config.set_file_write_period_ms(100000); in TEST_F()
879 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
893 helper.StartTracing(trace_config, std::move(pipe_pair.wr)); in TEST_F()
933 TraceConfig trace_config; in TEST_F() local
934 trace_config.add_buffers()->set_size_kb(1024); in TEST_F()
935 trace_config.set_duration_ms(200); in TEST_F()
937 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
944 helper.StartTracing(trace_config); in TEST_F()
1016 TraceConfig trace_config; in TEST_F() local
1017 SetTraceConfigForBugreportTest(&trace_config); in TEST_F()
1019 helper.StartTracing(trace_config); in TEST_F()
1053 TraceConfig trace_config; in TEST_F() local
1054 SetTraceConfigForBugreportTest(&trace_config); in TEST_F()
1055 trace_config.set_file_write_period_ms(60000); // Will never hit this. in TEST_F()
1056 trace_config.set_write_into_file(true); in TEST_F()
1059 helper.StartTracing(trace_config, std::move(pipe_pair.wr)); in TEST_F()
1097 TraceConfig trace_config; in TEST_F() local
1098 SetTraceConfigForBugreportTest(&trace_config); in TEST_F()
1099 trace_config.set_duration_ms(0); // set_trigger_timeout_ms is used instead. in TEST_F()
1100 auto* trigger_config = trace_config.mutable_trigger_config(); in TEST_F()
1107 helper.StartTracing(trace_config); in TEST_F()
1259 protos::gen::TraceConfig trace_config; in TEST_F() local
1260 trace_config.add_buffers()->set_size_kb(1024); in TEST_F()
1261 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
1265 auto* trigger_cfg = trace_config.mutable_trigger_config(); in TEST_F()
1289 trace_config.SerializeAsString()); in TEST_F()
1328 packet.trace_config().trigger_config().trigger_mode()); in TEST_F()
1350 protos::gen::TraceConfig trace_config; in TEST_F() local
1351 trace_config.add_buffers()->set_size_kb(1024); in TEST_F()
1352 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
1356 auto* trigger_cfg = trace_config.mutable_trigger_config(); in TEST_F()
1383 trace_config.SerializeAsString()); in TEST_F()
1424 packet.trace_config().trigger_config().trigger_mode()); in TEST_F()
1457 protos::gen::TraceConfig trace_config; in TEST_F() local
1458 trace_config.add_buffers()->set_size_kb(1024); in TEST_F()
1459 trace_config.set_allow_user_build_tracing(true); in TEST_F()
1460 auto* incident_config = trace_config.mutable_incident_report_config(); in TEST_F()
1462 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
1466 auto* trigger_cfg = trace_config.mutable_trigger_config(); in TEST_F()
1492 trace_config.SerializeAsString()); in TEST_F()
1512 protos::gen::TraceConfig trace_config; in TEST_F() local
1513 trace_config.add_buffers()->set_size_kb(1024); in TEST_F()
1514 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
1518 auto* trigger_cfg = trace_config.mutable_trigger_config(); in TEST_F()
1545 trace_config.SerializeAsString()); in TEST_F()
1594 packet.trace_config().trigger_config().trigger_mode()); in TEST_F()
1615 protos::gen::TraceConfig trace_config; in TEST_F() local
1616 trace_config.add_buffers()->set_size_kb(1024); in TEST_F()
1617 auto* ds_config = trace_config.add_data_sources()->mutable_config(); in TEST_F()
1621 auto* trigger_cfg = trace_config.mutable_trigger_config(); in TEST_F()