Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 25 of 1821) sorted by relevance

12345678910>>...73

/external/deqp-deps/SPIRV-Tools/test/stats/
Dstats_aggregate_test.cpp25 namespace stats { namespace
52 void CompileAndAggregateStats(const std::string& code, SpirvStats* stats, in CompileAndAggregateStats() argument
61 binary->wordCount, nullptr, stats)); in CompileAndAggregateStats()
80 SpirvStats stats; in TEST() local
82 CompileAndAggregateStats(code1, &stats); in TEST()
83 EXPECT_EQ(4u, stats.capability_hist.size()); in TEST()
84 EXPECT_EQ(0u, stats.capability_hist.count(SpvCapabilityShader)); in TEST()
85 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityAddresses)); in TEST()
86 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityKernel)); in TEST()
87 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityGenericPointer)); in TEST()
[all …]
Dstats_analyzer_test.cpp25 namespace stats { namespace
30 void FillDefaultStats(SpirvStats* stats) { in FillDefaultStats() argument
31 *stats = SpirvStats(); in FillDefaultStats()
32 stats->version_hist[0x00010000] = 40; in FillDefaultStats()
33 stats->version_hist[0x00010100] = 60; in FillDefaultStats()
34 stats->generator_hist[0x00000000] = 64; in FillDefaultStats()
35 stats->generator_hist[0x00010000] = 1; in FillDefaultStats()
36 stats->generator_hist[0x00020000] = 2; in FillDefaultStats()
37 stats->generator_hist[0x00030000] = 3; in FillDefaultStats()
38 stats->generator_hist[0x00040000] = 4; in FillDefaultStats()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/stats/
Dstats_aggregate_test.cpp25 namespace stats { namespace
52 void CompileAndAggregateStats(const std::string& code, SpirvStats* stats, in CompileAndAggregateStats() argument
61 binary->wordCount, nullptr, stats)); in CompileAndAggregateStats()
80 SpirvStats stats; in TEST() local
82 CompileAndAggregateStats(code1, &stats); in TEST()
83 EXPECT_EQ(4u, stats.capability_hist.size()); in TEST()
84 EXPECT_EQ(0u, stats.capability_hist.count(SpvCapabilityShader)); in TEST()
85 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityAddresses)); in TEST()
86 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityKernel)); in TEST()
87 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityGenericPointer)); in TEST()
[all …]
Dstats_analyzer_test.cpp25 namespace stats { namespace
30 void FillDefaultStats(SpirvStats* stats) { in FillDefaultStats() argument
31 *stats = SpirvStats(); in FillDefaultStats()
32 stats->version_hist[0x00010000] = 40; in FillDefaultStats()
33 stats->version_hist[0x00010100] = 60; in FillDefaultStats()
34 stats->generator_hist[0x00000000] = 64; in FillDefaultStats()
35 stats->generator_hist[0x00010000] = 1; in FillDefaultStats()
36 stats->generator_hist[0x00020000] = 2; in FillDefaultStats()
37 stats->generator_hist[0x00030000] = 3; in FillDefaultStats()
38 stats->generator_hist[0x00040000] = 4; in FillDefaultStats()
[all …]
/external/grpc-grpc/tools/run_tests/performance/
Dmassage_qps_stats.py21 for stats in scenario_result["serverStats"] + scenario_result["clientStats"]:
22 if "coreStats" in stats:
25 core_stats = stats["coreStats"]
26 del stats["coreStats"]
27 stats[
30 stats[
33 stats["core_cqs_created"] = massage_qps_stats_helpers.counter(
35 stats[
38 stats[
41 stats[
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DCacheLoadingTest.java106 CacheStats stats = cache.stats(); in testLoad() local
107 assertEquals(0, stats.missCount()); in testLoad()
108 assertEquals(0, stats.loadSuccessCount()); in testLoad()
109 assertEquals(0, stats.loadExceptionCount()); in testLoad()
110 assertEquals(0, stats.hitCount()); in testLoad()
114 stats = cache.stats(); in testLoad()
115 assertEquals(1, stats.missCount()); in testLoad()
116 assertEquals(1, stats.loadSuccessCount()); in testLoad()
117 assertEquals(0, stats.loadExceptionCount()); in testLoad()
118 assertEquals(0, stats.hitCount()); in testLoad()
[all …]
DCacheManualTest.java31 CacheStats stats = cache.stats(); in testGetIfPresent() local
32 assertEquals(0, stats.missCount()); in testGetIfPresent()
33 assertEquals(0, stats.loadSuccessCount()); in testGetIfPresent()
34 assertEquals(0, stats.loadExceptionCount()); in testGetIfPresent()
35 assertEquals(0, stats.hitCount()); in testGetIfPresent()
41 stats = cache.stats(); in testGetIfPresent()
42 assertEquals(1, stats.missCount()); in testGetIfPresent()
43 assertEquals(0, stats.loadSuccessCount()); in testGetIfPresent()
44 assertEquals(0, stats.loadExceptionCount()); in testGetIfPresent()
45 assertEquals(0, stats.hitCount()); in testGetIfPresent()
[all …]
DCacheStatsTest.java29 CacheStats stats = new CacheStats(0, 0, 0, 0, 0, 0); in testEmpty() local
30 assertEquals(0, stats.requestCount()); in testEmpty()
31 assertEquals(0, stats.hitCount()); in testEmpty()
32 assertEquals(1.0, stats.hitRate()); in testEmpty()
33 assertEquals(0, stats.missCount()); in testEmpty()
34 assertEquals(0.0, stats.missRate()); in testEmpty()
35 assertEquals(0, stats.loadSuccessCount()); in testEmpty()
36 assertEquals(0, stats.loadExceptionCount()); in testEmpty()
37 assertEquals(0.0, stats.loadExceptionRate()); in testEmpty()
38 assertEquals(0, stats.loadCount()); in testEmpty()
[all …]
DLocalLoadingCacheTest.java82 assertEquals(EMPTY_STATS, cache.stats()); in testStats()
86 CacheStats stats = cache.stats(); in testStats() local
87 assertEquals(1, stats.requestCount()); in testStats()
88 assertEquals(0, stats.hitCount()); in testStats()
89 assertEquals(0.0, stats.hitRate()); in testStats()
90 assertEquals(1, stats.missCount()); in testStats()
91 assertEquals(1.0, stats.missRate()); in testStats()
92 assertEquals(1, stats.loadCount()); in testStats()
93 long totalLoadTime = stats.totalLoadTime(); in testStats()
95 assertTrue(stats.averageLoadPenalty() >= 0.0); in testStats()
[all …]
/external/libaom/libaom/stats/
Daomstats.c20 int stats_open_file(stats_io_t *stats, const char *fpf, int pass) { in stats_open_file() argument
22 stats->pass = pass; in stats_open_file()
25 stats->file = fopen(fpf, "wb"); in stats_open_file()
26 stats->buf.sz = 0; in stats_open_file()
27 stats->buf.buf = NULL; in stats_open_file()
28 res = (stats->file != NULL); in stats_open_file()
32 stats->file = fopen(fpf, "rb"); in stats_open_file()
34 if (stats->file == NULL) fatal("First-pass stats file does not exist!"); in stats_open_file()
36 if (fseek(stats->file, 0, SEEK_END)) in stats_open_file()
39 stats->buf.sz = stats->buf_alloc_sz = ftell(stats->file); in stats_open_file()
[all …]
/external/libvpx/libvpx/
Dvpxstats.c19 int stats_open_file(stats_io_t *stats, const char *fpf, int pass) { in stats_open_file() argument
21 stats->pass = pass; in stats_open_file()
24 stats->file = fopen(fpf, "wb"); in stats_open_file()
25 stats->buf.sz = 0; in stats_open_file()
26 stats->buf.buf = NULL; in stats_open_file()
27 res = (stats->file != NULL); in stats_open_file()
31 stats->file = fopen(fpf, "rb"); in stats_open_file()
33 if (stats->file == NULL) fatal("First-pass stats file does not exist!"); in stats_open_file()
35 if (fseek(stats->file, 0, SEEK_END)) in stats_open_file()
38 stats->buf.sz = stats->buf_alloc_sz = ftell(stats->file); in stats_open_file()
[all …]
/external/grpc-grpc/src/cpp/ext/filters/census/
Dgrpc_plugin.h33 ::opencensus::stats::TagKey ClientMethodTagKey();
34 ::opencensus::stats::TagKey ClientStatusTagKey();
35 ::opencensus::stats::TagKey ServerMethodTagKey();
36 ::opencensus::stats::TagKey ServerStatusTagKey();
54 const ::opencensus::stats::ViewDescriptor& ClientSentMessagesPerRpcCumulative();
55 const ::opencensus::stats::ViewDescriptor& ClientSentBytesPerRpcCumulative();
56 const ::opencensus::stats::ViewDescriptor&
58 const ::opencensus::stats::ViewDescriptor&
60 const ::opencensus::stats::ViewDescriptor& ClientRoundtripLatencyCumulative();
61 const ::opencensus::stats::ViewDescriptor& ClientServerLatencyCumulative();
[all …]
/external/libcxx/test/libcxx/language.support/support.dynamic/
Dlibcpp_deallocate.sh.cpp107 alloc_stats stats; variable
111 stats.plain_called++; in operator delete()
112 stats.last_size = stats.last_align = -1; in operator delete()
118 stats.sized_called++; in operator delete()
119 stats.last_size = n; in operator delete()
120 stats.last_align = -1; in operator delete()
127 stats.aligned_called++; in operator delete()
128 stats.last_align = static_cast<int>(a); in operator delete()
129 stats.last_size = -1; in operator delete()
134 stats.aligned_sized_called++; in operator delete()
[all …]
/external/grpc-grpc/src/core/lib/iomgr/
Dtime_averaged_stats.cc23 void grpc_time_averaged_stats_init(grpc_time_averaged_stats* stats, in grpc_time_averaged_stats_init() argument
26 stats->init_avg = init_avg; in grpc_time_averaged_stats_init()
27 stats->regress_weight = regress_weight; in grpc_time_averaged_stats_init()
28 stats->persistence_factor = persistence_factor; in grpc_time_averaged_stats_init()
29 stats->batch_total_value = 0; in grpc_time_averaged_stats_init()
30 stats->batch_num_samples = 0; in grpc_time_averaged_stats_init()
31 stats->aggregate_total_weight = 0; in grpc_time_averaged_stats_init()
32 stats->aggregate_weighted_avg = init_avg; in grpc_time_averaged_stats_init()
35 void grpc_time_averaged_stats_add_sample(grpc_time_averaged_stats* stats, in grpc_time_averaged_stats_add_sample() argument
37 stats->batch_total_value += value; in grpc_time_averaged_stats_add_sample()
[all …]
/external/grpc-grpc/src/core/ext/filters/load_reporting/
Dregistered_opencensus_objects.h37 inline ::opencensus::stats::MeasureInt64 MeasureStartCount() { in MeasureStartCount()
38 static const ::opencensus::stats::MeasureInt64 measure = in MeasureStartCount()
39 ::opencensus::stats::MeasureInt64::Register( in MeasureStartCount()
44 inline ::opencensus::stats::MeasureInt64 MeasureEndCount() { in MeasureEndCount()
45 static const ::opencensus::stats::MeasureInt64 measure = in MeasureEndCount()
46 ::opencensus::stats::MeasureInt64::Register( in MeasureEndCount()
51 inline ::opencensus::stats::MeasureInt64 MeasureEndBytesSent() { in MeasureEndBytesSent()
52 static const ::opencensus::stats::MeasureInt64 measure = in MeasureEndBytesSent()
53 ::opencensus::stats::MeasureInt64::Register( in MeasureEndBytesSent()
58 inline ::opencensus::stats::MeasureInt64 MeasureEndBytesReceived() { in MeasureEndBytesReceived()
[all …]
/external/bcc/tests/python/
Dtest_stat1.py35 self.stats = b.get_table("stats", Key, Leaf)
43 key = self.stats.Key(IPAddress("172.16.1.2").value, IPAddress("172.16.1.1").value)
44 leaf = self.stats[key]
47 del self.stats[key]
49 x = self.stats[key]
51 del self.stats[key]
52 self.stats.clear()
53 self.assertEqual(len(self.stats), 0)
54 self.stats[key] = leaf
55 self.assertEqual(len(self.stats), 1)
[all …]
/external/compiler-rt/lib/asan/
Dasan_stats.cc58 void AsanStats::MergeFrom(const AsanStats *stats) { in MergeFrom() argument
60 const uptr *src_ptr = reinterpret_cast<const uptr*>(stats); in MergeFrom()
79 accumulated_stats->MergeFrom(&t->stats()); in MergeThreadStats()
82 static void GetAccumulatedStats(AsanStats *stats) { in GetAccumulatedStats() argument
83 stats->Clear(); in GetAccumulatedStats()
87 .RunCallbackForEachThreadLocked(MergeThreadStats, stats); in GetAccumulatedStats()
89 stats->MergeFrom(&unknown_thread_stats); in GetAccumulatedStats()
92 stats->MergeFrom(&dead_threads_stats); in GetAccumulatedStats()
97 if (max_malloced_memory < stats->malloced) { in GetAccumulatedStats()
98 max_malloced_memory = stats->malloced; in GetAccumulatedStats()
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtcp_utility_unittest.cc31 RTCPUtility::NackStats stats; in TEST() local
32 EXPECT_EQ(0U, stats.unique_requests()); in TEST()
33 EXPECT_EQ(0U, stats.requests()); in TEST()
34 stats.ReportRequest(10); in TEST()
35 EXPECT_EQ(1U, stats.unique_requests()); in TEST()
36 EXPECT_EQ(1U, stats.requests()); in TEST()
38 stats.ReportRequest(10); in TEST()
39 EXPECT_EQ(1U, stats.unique_requests()); in TEST()
40 stats.ReportRequest(11); in TEST()
41 EXPECT_EQ(2U, stats.unique_requests()); in TEST()
[all …]
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/
Dstat_utils.cc33 float GiniImpurity(const LeafStat& stats, int32 num_classes) { in GiniImpurity() argument
34 const float smoothed_sum = num_classes + stats.weight_sum(); in GiniImpurity()
35 return 1.0 - ((stats.classification().gini().square() + in GiniImpurity()
36 2 * stats.weight_sum() + num_classes) / in GiniImpurity()
40 float WeightedGiniImpurity(const LeafStat& stats, int32 num_classes) { in WeightedGiniImpurity() argument
41 return stats.weight_sum() * GiniImpurity(stats, num_classes); in WeightedGiniImpurity()
44 void UpdateGini(LeafStat* stats, float old_val, float weight) { in UpdateGini() argument
45 stats->set_weight_sum(stats->weight_sum() + weight); in UpdateGini()
48 stats->mutable_classification()->mutable_gini()->set_square( in UpdateGini()
49 stats->classification().gini().square() + weight * weight + in UpdateGini()
[all …]
/external/libxcam/xcore/
Dx3a_analyzer_simple.cpp146 X3aAnalyzerSimple::pre_3a_analyze (SmartPtr<X3aStats> &stats) in pre_3a_analyze() argument
148 _current_stats = stats; in pre_3a_analyze()
174 const XCam3AStats *stats = _current_stats->get_stats (); in analyze_awb() local
181 XCAM_ASSERT (stats); in analyze_awb()
184 for (uint32_t i = 0; i < stats->info.height; ++i) in analyze_awb()
185 for (uint32_t j = 0; j < stats->info.width; ++j) { in analyze_awb()
186 sum_r += (double)(stats->stats[i * stats->info.aligned_width + j].avg_r); in analyze_awb()
187 sum_gr += (double)(stats->stats[i * stats->info.aligned_width + j].avg_gr); in analyze_awb()
188 sum_gb += (double)(stats->stats[i * stats->info.aligned_width + j].avg_gb); in analyze_awb()
189 sum_b += (double)(stats->stats[i * stats->info.aligned_width + j].avg_b); in analyze_awb()
[all …]
/external/webp/src/dsp/
Dssim.c31 const VP8DistoStats* const stats, uint32_t N /*num samples*/) { in SSIMCalculation() argument
36 const uint64_t xmxm = (uint64_t)stats->xm * stats->xm; in SSIMCalculation()
37 const uint64_t ymym = (uint64_t)stats->ym * stats->ym; in SSIMCalculation()
39 const int64_t xmym = (int64_t)stats->xm * stats->ym; in SSIMCalculation()
40 const int64_t sxy = (int64_t)stats->xym * N - xmym; // can be negative in SSIMCalculation()
41 const uint64_t sxx = (uint64_t)stats->xxm * N - xmxm; in SSIMCalculation()
42 const uint64_t syy = (uint64_t)stats->yym * N - ymym; in SSIMCalculation()
55 double VP8SSIMFromStats(const VP8DistoStats* const stats) { in VP8SSIMFromStats() argument
56 return SSIMCalculation(stats, kWeightSum); in VP8SSIMFromStats()
59 double VP8SSIMFromStatsClipped(const VP8DistoStats* const stats) { in VP8SSIMFromStatsClipped() argument
[all …]
/external/webrtc/webrtc/modules/video_processing/
Dvideo_processing_impl.cc44 FrameStats* stats) { in GetFrameStats() argument
45 ClearFrameStats(stats); // The histogram needs to be zeroed out. in GetFrameStats()
52 stats->sub_sampling_factor = GetSubSamplingFactor(width, height); in GetFrameStats()
56 for (int i = 0; i < height; i += (1 << stats->sub_sampling_factor)) { in GetFrameStats()
58 for (int j = 0; j < width; j += (1 << stats->sub_sampling_factor)) { in GetFrameStats()
59 stats->hist[buffer[k + j]]++; in GetFrameStats()
60 stats->sum += buffer[k + j]; in GetFrameStats()
64 stats->num_pixels = (width * height) / ((1 << stats->sub_sampling_factor) * in GetFrameStats()
65 (1 << stats->sub_sampling_factor)); in GetFrameStats()
66 assert(stats->num_pixels > 0); in GetFrameStats()
[all …]
/external/webrtc/webrtc/modules/audio_coding/acm2/
Dcall_statistics_unittest.cc20 AudioDecodingCallStats stats; in TEST() local
22 stats = call_stats.GetDecodingStatistics(); in TEST()
23 EXPECT_EQ(0, stats.calls_to_neteq); in TEST()
24 EXPECT_EQ(0, stats.calls_to_silence_generator); in TEST()
25 EXPECT_EQ(0, stats.decoded_normal); in TEST()
26 EXPECT_EQ(0, stats.decoded_cng); in TEST()
27 EXPECT_EQ(0, stats.decoded_plc); in TEST()
28 EXPECT_EQ(0, stats.decoded_plc_cng); in TEST()
33 AudioDecodingCallStats stats; in TEST() local
41 stats = call_stats.GetDecodingStatistics(); in TEST()
[all …]
/external/perfetto/src/trace_processor/
Dstats_table.cc64 sqlite3_result_text(ctx, stats::kNames[key_], -1, kSqliteStatic); in Column()
67 if (stats::kTypes[key_] == stats::kIndexed) { in Column()
74 switch (stats::kSeverities[key_]) { in Column()
75 case stats::kInfo: in Column()
78 case stats::kError: in Column()
84 switch (stats::kSources[key_]) { in Column()
85 case stats::kTrace: in Column()
88 case stats::kAnalysis: in Column()
94 if (stats::kTypes[key_] == stats::kIndexed) { in Column()
97 sqlite3_result_int64(ctx, storage_->stats()[key_].value); in Column()
[all …]
/external/python/cpython3/Lib/test/
Dtest_pstats.py30 self.stats = pstats.Stats(stats_file)
34 stats = pstats.Stats(stream=stream)
35 stats.add(self.stats, self.stats)
43 self.stats.sort_stats(arg_int)
44 self.assertEqual(self.stats.sort_type,
45 self.stats.sort_arg_dict_default[arg_str][-1])
51 self.stats.sort_stats(sort_name)
52 self.assertEqual(self.stats.sort_type,
53 self.stats.sort_arg_dict_default[sort_name][-1])
59 self.stats.sort_stats(sort_name)
[all …]

12345678910>>...73