Home
last modified time | relevance | path

Searched refs:collector (Results 1 – 25 of 140) sorted by relevance

123456

/external/autotest/site_utils/
Drun_suite_unittest.py178 collector = run_suite.ResultCollector(
183 collector._missing_results = {
186 suite_views = collector._fetch_relevant_test_views_of_suite()
235 collector = run_suite.ResultCollector(
240 collector._fetch_test_views_of_child_jobs())
285 collector = run_suite.ResultCollector(
289 collector._suite_views = [suite_job_view]
290 collector._test_views = [suite_job_view, good_test, bad_test]
291 collector._max_testname_width = max(
292 [len(v.get_testname()) for v in collector._test_views]) + 3
[all …]
/external/robolectric-shadows/utils/src/test/java/org/robolectric/util/
DPerfStatsCollectorTest.java19 private PerfStatsCollector collector; field in PerfStatsCollectorTest
24 collector = new PerfStatsCollector(fakeClock); in setUp()
29 Event firstEvent = collector.startEvent("first event"); in shouldMeasureElapsedTimeForEvents()
33 Collection<Metric> metrics = collector.getMetrics(); in shouldMeasureElapsedTimeForEvents()
41 Event firstEvent = collector.startEvent("repeatable event"); in shouldMeasureElapsedTimeForRepeatedEvents()
45 Event secondEvent = collector.startEvent("repeatable event"); in shouldMeasureElapsedTimeForRepeatedEvents()
49 Event thirdEvent = collector.startEvent("repeatable event"); in shouldMeasureElapsedTimeForRepeatedEvents()
53 Collection<Metric> metrics = collector.getMetrics(); in shouldMeasureElapsedTimeForRepeatedEvents()
61 assertThat(collector.measure("event", () -> { in shouldRunAndMeasureSuccessfulCallable()
66 Collection<Metric> metrics = collector.getMetrics(); in shouldRunAndMeasureSuccessfulCallable()
[all …]
/external/desugar/test/java/com/google/devtools/build/android/desugar/dependencies/
DMetadataCollectorTest.java39 MetadataCollector collector = new MetadataCollector(false); in testAssumeCompanionClass() local
40 collector.assumeCompanionClass("a", "b$$CC"); in testAssumeCompanionClass()
41 collector.assumeCompanionClass("b", "b$$CC"); in testAssumeCompanionClass()
42 collector.assumeCompanionClass("a", "a$$CC"); in testAssumeCompanionClass()
44 DesugarDepsInfo info = extractProto(collector); in testAssumeCompanionClass()
54 MetadataCollector collector = new MetadataCollector(true); in testMissingImplementedInterface() local
55 collector.missingImplementedInterface("a", "b"); in testMissingImplementedInterface()
56 collector.missingImplementedInterface("a", "c"); in testMissingImplementedInterface()
57 collector.missingImplementedInterface("c", "b"); in testMissingImplementedInterface()
59 DesugarDepsInfo info = extractProto(collector); in testMissingImplementedInterface()
[all …]
/external/mockito/src/test/java/org/mockitousage/junitrule/
DVerificationCollectorImplTest.java24 VerificationCollector collector = MockitoJUnit.collector().assertLazily(); in should_not_throw_any_exceptions_when_verifications_are_successful() local
30 collector.collectAndReport(); in should_not_throw_any_exceptions_when_verifications_are_successful()
35 VerificationCollector collector = MockitoJUnit.collector().assertLazily(); in should_collect_verification_failures() local
40 collector.collectAndReport(); in should_collect_verification_failures()
45 VerificationCollector collector = MockitoJUnit.collector().assertLazily(); in should_collect_multiple_verification_failures() local
52 collector.collectAndReport(); in should_collect_multiple_verification_failures()
62 VerificationCollector collector = MockitoJUnit.collector().assertLazily(); in should_only_collect_failures_ignore_successful_verifications() local
69 this.assertAtLeastOneFailure(collector); in should_only_collect_failures_ignore_successful_verifications()
74 VerificationCollector collector = MockitoJUnit.collector().assertLazily(); in should_continue_collecting_after_failing_verification() local
82 this.assertAtLeastOneFailure(collector); in should_continue_collecting_after_failing_verification()
[all …]
/external/libchrome/base/files/
Dfile_path_watcher_unittest.cc118 explicit TestDelegate(NotificationCollector* collector) in TestDelegate() argument
119 : collector_(collector) { in TestDelegate()
197 NotificationCollector* collector() { return collector_.get(); } in collector() function in base::__anond74f492a0111::FilePathWatcherTest
223 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F()
235 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F()
249 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F()
261 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F()
313 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F()
321 std::unique_ptr<TestDelegate> delegate1(new TestDelegate(collector())); in TEST_F()
322 std::unique_ptr<TestDelegate> delegate2(new TestDelegate(collector())); in TEST_F()
[all …]
/external/autotest/server/site_tests/desktopui_CrashyRebootServer/
Ddesktopui_CrashyRebootServer.py43 collector = autotest.log_collector(host, None, '.')
45 collector.client_results_dir,
46 collector.server_results_dir)
53 collector.collect_client_job_results()
54 collector.remove_redundant_client_logs()
56 collector.client_results_dir,
57 collector.server_results_dir)
/external/python/cpython3/Lib/test/
Dtest_htmlparser.py86 def _run_check(self, source, expected_events, collector=None): argument
87 if collector is None:
88 collector = self.get_collector()
89 parser = collector
316 collector=Collector(convert_charrefs=False))
346 collector = lambda: EventCollectorCharrefs() function
347 self.assertTrue(collector().convert_charrefs)
354 expected, collector=collector())
362 expected, collector=collector())
373 expected, collector=collector())
[all …]
/external/autotest/client/common_lib/cros/
Dsystem_metrics_collector_unittest.py35 collector = system_metrics_collector.SystemMetricsCollector(
37 collector.collect_snapshot()
41 collector.write_metrics(_write_func)
50 collector = system_metrics_collector.SystemMetricsCollector(
52 collector.collect_snapshot()
53 collector.collect_snapshot()
54 collector.write_metrics(lambda **kwargs: None)
/external/devlib/devlib/instrument/
Dframes.py21 self.collector = None
29 self.collector = self.collector_cls(self.target, self.period,
37 self.collector.start()
40 self.collector.stop()
46 self.collector.process_frames(self._raw_file)
48 self.collector.write_frames(outfile, columns=active_sites)
/external/tensorflow/tensorflow/core/distributed_runtime/
Dworker_cache_logger.cc54 delete iter.second.collector; in ClearLogsWithLock()
63 iter->second.collector->FinalizeAndSwap(ss); in RetrieveLogs()
64 delete iter->second.collector; in RetrieveLogs()
75 if (!sl->collector) { in Save()
76 sl->collector = new StepStatsCollector(&sl->step_stats); in Save()
78 sl->collector->Save(device, ns); in Save()
Dworker.cc148 StepStatsCollector* collector = nullptr; in DoRunGraph() local
152 collector = new StepStatsCollector(response->mutable_step_stats()); in DoRunGraph()
169 delete collector; in DoRunGraph()
177 collector, response, cm, in, in DoRunGraph()
178 [this, step_id, response, session, cm, out, token, collector, opts, in DoRunGraph()
197 if (collector) collector->Finalize(); in DoRunGraph()
198 delete collector; in DoRunGraph()
Dgraph_mgr.cc383 StepStatsCollector* collector, in ExecuteAsync() argument
438 StartParallelExecutors(handle, step_id, item, rendezvous, collector, in ExecuteAsync()
449 StepStatsCollector* collector, in StartParallelExecutors() argument
461 [this, item, collector, cost_graph, step_container, in StartParallelExecutors()
463 BuildCostModel(item, collector, cost_graph); in StartParallelExecutors()
474 args.stats_collector = collector; in StartParallelExecutors()
500 void GraphMgr::BuildCostModel(Item* item, StepStatsCollector* collector, in BuildCostModel() argument
502 if (collector && !skip_cost_models_) { in BuildCostModel()
510 collector->BuildCostModel(&cost_model_manager_, device_to_graph); in BuildCostModel()
/external/autotest/client/common_lib/cros/cfm/usb/
Dusb_device_collector_unittest.py46 self.collector = usb_device_collector.UsbDeviceCollector(mock_host)
50 usb_data = self.collector.get_usb_devices()
74 devices = self.collector.get_devices_by_spec(spec)
80 devices = self.collector.get_devices_by_spec(*specs)
86 devices = self.collector.get_devices_by_spec(*specs)
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DICUCurrencyMetaInfo.java73 private <T> List<T> collect(Collector<T> collector, CurrencyFilter filter) { in collect() argument
81 int needed = collector.collects(); in collect()
99 collectRegion(collector, filter, needed, b); in collect()
103 collectRegion(collector, filter, needed, regionInfo.at(i)); in collect()
108 return collector.getList(); in collect()
111 private <T> void collectRegion(Collector<T> collector, CurrencyFilter filter, in collectRegion() argument
116 collector.collect(b.getKey(), null, 0, 0, -1, false); in collectRegion()
164 collector.collect(region, currency, from, to, i, tender); in collectRegion()
/external/icu/icu4j/main/classes/currdata/src/com/ibm/icu/impl/
DICUCurrencyMetaInfo.java71 private <T> List<T> collect(Collector<T> collector, CurrencyFilter filter) { in collect() argument
79 int needed = collector.collects(); in collect()
97 collectRegion(collector, filter, needed, b); in collect()
101 collectRegion(collector, filter, needed, regionInfo.at(i)); in collect()
106 return collector.getList(); in collect()
109 private <T> void collectRegion(Collector<T> collector, CurrencyFilter filter, in collectRegion() argument
114 collector.collect(b.getKey(), null, 0, 0, -1, false); in collectRegion()
162 collector.collect(region, currency, from, to, i, tender); in collectRegion()
/external/autotest/client/site_tests/platform_AnomalyCollector/
Dcontrol7 PURPOSE = "Checks that the anomaly collector is collecting log anomalies"
8 CRITERIA = "The collector must create a file when a test warning is produced"
15 This checks that the anomaly collector is operational by generating
16 a test kernel warning and verifying that the collector daemon collects it.
/external/python/cpython3/Doc/library/
Dgc.rst5 :synopsis: Interface to the cycle-detecting garbage collector.
12 This module provides an interface to the optional garbage collector. It
13 provides the ability to disable the collector, tune the collection frequency,
15 the collector found but cannot free. Since the collector supplements the
16 reference counting already used in Python, you can disable the collector if you
68 Returns a list of all objects tracked by the collector, excluding the list
101 order to decide when to run, the collector keeps track of the number object
131 and have not yet been collected by the garbage collector can be listed among the
154 Returns ``True`` if the object is currently tracked by the garbage collector,
158 in order to suppress the garbage collector footprint of simple instances
[all …]
/external/autotest/client/common_lib/cros/cfm/
Dcras_node_collector_unittest.py45 collector = cras_node_collector.CrasNodeCollector(mock_host)
47 nodes = collector.get_output_nodes()
86 collector = cras_node_collector.CrasNodeCollector(mock_host)
88 nodes = collector.get_input_nodes()
/external/llvm/docs/
DGarbageCollection.rst13 garbage collector.** You must provide your own.
18 First, you should pick a collector strategy. LLVM includes a number of built
20 Note that the collector strategy is a description of how LLVM should generate
21 code such that it interacts with your collector and runtime, not a description
22 of the collector itself.
24 Next, mark your generated functions as using your chosen collector strategy.
29 F.setGC(<collector description name>);
36 define void @foo() gc "<collector description name>" { ... }
43 barriers. If you collector does not require such barriers, you can skip
46 * Use the memory allocation routines provided by your garbage collector's
[all …]
/external/tensorflow/tensorflow/core/platform/
Ddevice_tracer_test.cc119 StepStatsCollector collector(&stats); in TEST_F() local
120 TF_EXPECT_OK(tracer->Collect(&collector)); in TEST_F()
129 StepStatsCollector collector(&stats); in TEST_F() local
130 Status status = tracer->Collect(&collector); in TEST_F()
197 StepStatsCollector collector(&stats); in TEST_F() local
198 TF_ASSERT_OK(tracer->Collect(&collector)); in TEST_F()
199 collector.Finalize(); in TEST_F()
/external/python/cpython2/Doc/library/
Dgc.rst6 :synopsis: Interface to the cycle-detecting garbage collector.
11 This module provides an interface to the optional garbage collector. It
12 provides the ability to disable the collector, tune the collection frequency,
14 the collector found but cannot free. Since the collector supplements the
15 reference counting already used in Python, you can disable the collector if you
71 Returns a list of all objects tracked by the collector, excluding the list
87 order to decide when to run, the collector keeps track of the number object
119 and have not yet been collected by the garbage collector can be listed among the
145 Returns ``True`` if the object is currently tracked by the garbage collector,
149 in order to suppress the garbage collector footprint of simple instances
[all …]
/external/protobuf/src/google/protobuf/io/
Dtokenizer.cc762 CommentCollector collector(prev_trailing_comments, detached_comments, in NextWithComments() local
775 collector.DetachFromPrev(); in NextWithComments()
782 ConsumeLineComment(collector.GetBufferForLineComment()); in NextWithComments()
786 collector.Flush(); in NextWithComments()
789 ConsumeBlockComment(collector.GetBufferForBlockComment()); in NextWithComments()
795 collector.ClearBuffer(); in NextWithComments()
801 collector.Flush(); in NextWithComments()
820 ConsumeLineComment(collector.GetBufferForLineComment()); in NextWithComments()
823 ConsumeBlockComment(collector.GetBufferForBlockComment()); in NextWithComments()
835 collector.Flush(); in NextWithComments()
[all …]
/external/tensorflow/tensorflow/core/lib/monitoring/
Dcollection_registry.cc95 internal::Collector collector(env_->NowMicros() / 1000); in CollectMetrics() local
100 collector.CollectMetricDescriptor(registration.second.metric_def); in CollectMetrics()
103 collector.CollectMetricValues(registration.second /* collection_info */); in CollectMetrics()
105 return collector.ConsumeCollectedMetrics(); in CollectMetrics()
Dcollection_registry.h70 internal::Collector* const collector, PointSet* const point_set) in MetricCollector() argument
73 collector_(collector), in MetricCollector()
106 MetricCollectorGetter(internal::Collector* const collector, in MetricCollectorGetter() argument
109 : collector_(collector), in MetricCollectorGetter()
260 internal::Collector* const collector) LOCKS_EXCLUDED(mu_) { in GetMetricCollector() argument
269 metric_def, registration_time_millis, collector, point_set); in GetMetricCollector()
/external/tensorflow/tensorflow/contrib/lite/testing/
Dtokenize_test.cc38 TokenCollector collector; in TokenizeString() local
39 Tokenize(&ss, &collector); in TokenizeString()
40 return collector.Tokens(); in TokenizeString()

123456