Home
last modified time | relevance | path

Searched refs:takeMetric (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/unittests/support/
DMemoryTreeTests.cpp107 EXPECT_THAT(Tracer.takeMetric(MetricName, "root"), ElementsAre(7)); in TEST()
108 EXPECT_THAT(Tracer.takeMetric(MetricName, "root.leaf"), ElementsAre(1)); in TEST()
109 EXPECT_THAT(Tracer.takeMetric(MetricName, "root.detail"), ElementsAre(4)); in TEST()
110 EXPECT_THAT(Tracer.takeMetric(MetricName, "root.detail.leaf"), in TEST()
112 EXPECT_THAT(Tracer.takeMetric(MetricName, "root.detail.child"), in TEST()
114 EXPECT_THAT(Tracer.takeMetric(MetricName, "root.detail.child.leaf"), in TEST()
116 EXPECT_THAT(Tracer.takeMetric(MetricName, "root.child"), ElementsAre(2)); in TEST()
117 EXPECT_THAT(Tracer.takeMetric(MetricName, "root.child.leaf"), ElementsAre(1)); in TEST()
DTestTracer.h36 std::vector<double> takeMetric(llvm::StringRef Metric,
DTestTracer.cpp23 std::vector<double> TestTracer::takeMetric(llvm::StringRef Metric, in takeMetric() function in clang::clangd::trace::TestTracer
DTraceTests.cpp141 EXPECT_THAT(Tracer.takeMetric(MetricName, OpName), SizeIs(0)); in TEST()
143 EXPECT_THAT(Tracer.takeMetric(MetricName, OpName), SizeIs(1)); in TEST()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DTUSchedulerTests.cpp558 EXPECT_THAT(Tracer.takeMetric("ast_access_diag", "hit"), SizeIs(0)); in TEST_F()
559 EXPECT_THAT(Tracer.takeMetric("ast_access_diag", "miss"), SizeIs(0)); in TEST_F()
566 EXPECT_THAT(Tracer.takeMetric("ast_access_diag", "hit"), SizeIs(0)); in TEST_F()
567 EXPECT_THAT(Tracer.takeMetric("ast_access_diag", "miss"), SizeIs(1)); in TEST_F()
577 EXPECT_THAT(Tracer.takeMetric("ast_access_diag", "hit"), SizeIs(0)); in TEST_F()
578 EXPECT_THAT(Tracer.takeMetric("ast_access_diag", "miss"), SizeIs(2)); in TEST_F()
588 EXPECT_THAT(Tracer.takeMetric("ast_access_diag", "hit"), SizeIs(0)); in TEST_F()
589 EXPECT_THAT(Tracer.takeMetric("ast_access_diag", "miss"), SizeIs(1)); in TEST_F()
833 EXPECT_THAT(Tracer.takeMetric("ast_access_read", "hit"), SizeIs(0)); in TEST_F()
834 EXPECT_THAT(Tracer.takeMetric("ast_access_read", "miss"), SizeIs(0)); in TEST_F()
[all …]
DSelectionTests.cpp456 EXPECT_THAT(Tracer.takeMetric("selection_recovery", "C++"), in TEST()
473 EXPECT_THAT(Tracer.takeMetric("selection_recovery", "C++"), in TEST()
499 EXPECT_THAT(Tracer.takeMetric("selection_recovery", "C++"), in TEST()
501 EXPECT_THAT(Tracer.takeMetric("selection_recovery_type", "C++"), in TEST()
DClangdLSPServerTests.cpp165 EXPECT_THAT(Tracer.takeMetric("lsp_latency", MethodName), testing::SizeIs(0)); in TEST_F()
168 EXPECT_THAT(Tracer.takeMetric("lsp_latency", MethodName), testing::SizeIs(1)); in TEST_F()
DRenameTests.cpp1145 EXPECT_THAT(Tracer.takeMetric("rename_name_invalid", "Keywords"), in TEST()
1495 EXPECT_THAT(Tracer.takeMetric("rename_files"), SizeIs(0)); in TEST()
1498 EXPECT_THAT(Tracer.takeMetric("rename_files"), ElementsAre(2)); in TEST()