Home
last modified time | relevance | path

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

12345678910>>...15

/external/guava/guava-tests/test/com/google/common/cache/
DCacheLoadingTest.java102 CacheStats stats = cache.stats(); in testLoad() local
103 assertEquals(0, stats.missCount()); in testLoad()
104 assertEquals(0, stats.loadSuccessCount()); in testLoad()
105 assertEquals(0, stats.loadExceptionCount()); in testLoad()
106 assertEquals(0, stats.hitCount()); in testLoad()
110 stats = cache.stats(); in testLoad()
111 assertEquals(1, stats.missCount()); in testLoad()
112 assertEquals(1, stats.loadSuccessCount()); in testLoad()
113 assertEquals(0, stats.loadExceptionCount()); in testLoad()
114 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.java87 assertEquals(EMPTY_STATS, cache.stats()); in testStats()
91 CacheStats stats = cache.stats(); in testStats() local
92 assertEquals(1, stats.requestCount()); in testStats()
93 assertEquals(0, stats.hitCount()); in testStats()
94 assertEquals(0.0, stats.hitRate()); in testStats()
95 assertEquals(1, stats.missCount()); in testStats()
96 assertEquals(1.0, stats.missRate()); in testStats()
97 assertEquals(1, stats.loadCount()); in testStats()
98 long totalLoadTime = stats.totalLoadTime(); in testStats()
100 assertTrue(stats.averageLoadPenalty() > 0.0); in testStats()
[all …]
DAbstractCacheTest.java85 CacheStats stats = counter.snapshot(); in testEmptySimpleStats() local
86 assertEquals(0, stats.requestCount()); in testEmptySimpleStats()
87 assertEquals(0, stats.hitCount()); in testEmptySimpleStats()
88 assertEquals(1.0, stats.hitRate()); in testEmptySimpleStats()
89 assertEquals(0, stats.missCount()); in testEmptySimpleStats()
90 assertEquals(0.0, stats.missRate()); in testEmptySimpleStats()
91 assertEquals(0, stats.loadSuccessCount()); in testEmptySimpleStats()
92 assertEquals(0, stats.loadExceptionCount()); in testEmptySimpleStats()
93 assertEquals(0, stats.loadCount()); in testEmptySimpleStats()
94 assertEquals(0, stats.totalLoadTime()); in testEmptySimpleStats()
[all …]
/external/kernel-headers/original/linux/
Dtaskstats_kern.h27 sig->stats = NULL; in taskstats_tgid_init()
32 struct taskstats *stats; in taskstats_tgid_alloc() local
35 stats = kmem_cache_zalloc(taskstats_cache, SLAB_KERNEL); in taskstats_tgid_alloc()
36 if (!stats) in taskstats_tgid_alloc()
40 if (!sig->stats) { in taskstats_tgid_alloc()
41 sig->stats = stats; in taskstats_tgid_alloc()
42 stats = NULL; in taskstats_tgid_alloc()
46 if (stats) in taskstats_tgid_alloc()
47 kmem_cache_free(taskstats_cache, stats); in taskstats_tgid_alloc()
52 struct taskstats *stats = NULL; in taskstats_tgid_free() local
[all …]
/external/chromium/net/disk_cache/
Dstats.cc72 bool LoadStats(BackendImpl* backend, Addr address, OnDiskStats* stats) { in LoadStats() argument
79 memset(stats, 0, sizeof(*stats)); in LoadStats()
80 if (!file->Read(stats, sizeof(*stats), offset)) in LoadStats()
83 if (stats->signature != kDiskSignature) in LoadStats()
88 if (static_cast<unsigned int>(stats->size) > sizeof(*stats)) { in LoadStats()
89 memset(stats, 0, sizeof(*stats)); in LoadStats()
95 bool StoreStats(BackendImpl* backend, Addr address, OnDiskStats* stats) { in StoreStats() argument
102 return file->Write(stats, sizeof(*stats), offset); in StoreStats()
105 bool CreateStats(BackendImpl* backend, Addr* address, OnDiskStats* stats) { in CreateStats() argument
111 COMPILE_ASSERT(sizeof(*stats) <= 256 * 2, use_more_blocks); in CreateStats()
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/
DProfiler.java146 ProfileStats stats = new ProfileStats(); field in Profiler
158 stats.numRuleInvocations++; in enterRule()
160 stats.maxRuleInvocationDepth = Math.max(stats.maxRuleInvocationDepth, ruleLevel); in enterRule()
184 stats.numMemoizationCacheMisses++; in examineRuleMemoization()
185 stats.numGuessingRuleInvocations++; // we'll have to enter in examineRuleMemoization()
191 stats.numMemoizationCacheHits++; in examineRuleMemoization()
204 stats.numMemoizationCacheEntries++; in memoize()
215 stats.numDecisionEvents++; in enterDecision()
261 stats.numTokens++; in consumeToken()
288 if ( !inDecision() ) stats.numHiddenTokens++; in consumeHiddenToken()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DProfiler.cs90 ProfileStats stats = new ProfileStats(); field in Antlr.Runtime.Debug.Profiler
102 stats.numRuleInvocations++; in EnterRule()
104 stats.maxRuleInvocationDepth = Math.Max(stats.maxRuleInvocationDepth, ruleLevel); in EnterRule()
128 stats.numMemoizationCacheMisses++; in ExamineRuleMemoization()
129 stats.numGuessingRuleInvocations++; // we'll have to enter in ExamineRuleMemoization()
134 stats.numMemoizationCacheHits++; in ExamineRuleMemoization()
147 stats.numMemoizationCacheEntries++; in Memoize()
157 stats.numDecisionEvents++; in EnterDecision()
210 stats.numTokens++; in ConsumeToken()
242 stats.numHiddenTokens++; in ConsumeHiddenToken()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DProfiler.cs90 ProfileStats stats = new ProfileStats(); field in Antlr.Runtime.Debug.Profiler
105 stats.numRuleInvocations++; in EnterRule()
107 stats.maxRuleInvocationDepth = Math.Max(stats.maxRuleInvocationDepth, ruleLevel); in EnterRule()
134 stats.numMemoizationCacheMisses++; in ExamineRuleMemoization()
135 stats.numGuessingRuleInvocations++; // we'll have to enter in ExamineRuleMemoization()
142 stats.numMemoizationCacheHits++; in ExamineRuleMemoization()
156 stats.numMemoizationCacheEntries++; in Memoize()
168 stats.numDecisionEvents++; in EnterDecision()
227 stats.numTokens++; in ConsumeToken()
264 stats.numHiddenTokens++; in ConsumeHiddenToken()
[all …]
/external/libnfc-nci/src/nfc/tags/
Drw_main.c61 memset (&rw_cb.stats, 0, sizeof (tRW_STATS)); in rw_main_reset_stats()
64 rw_cb.stats.start_tick = GKI_get_tick_count (); in rw_main_reset_stats()
78 rw_cb.stats.bytes_sent+=num_bytes; in rw_main_update_tx_stats()
79 rw_cb.stats.num_ops++; in rw_main_update_tx_stats()
82 rw_cb.stats.num_retries++; in rw_main_update_tx_stats()
96 rw_cb.stats.num_fail++; in rw_main_update_fail_stats()
110 rw_cb.stats.num_crc++; in rw_main_update_crc_error_stats()
124 rw_cb.stats.num_trans_err++; in rw_main_update_trans_error_stats()
138 rw_cb.stats.bytes_received+=num_bytes; in rw_main_update_rx_stats()
154 ticks = GKI_get_tick_count () - rw_cb.stats.start_tick; in rw_main_log_stats()
[all …]
/external/chromium/chrome/browser/renderer_host/
Dweb_cache_manager.cc84 RendererInfo* stats = &(stats_[renderer_id]); in Add() local
85 memset(stats, 0, sizeof(*stats)); in Add()
86 stats->access = Time::Now(); in Add()
123 const WebCache::UsageStats& stats) { in ObserveStats() argument
129 entry->second.capacity = stats.capacity; in ObserveStats()
130 entry->second.deadSize = stats.deadSize; in ObserveStats()
131 entry->second.liveSize = stats.liveSize; in ObserveStats()
132 entry->second.maxDeadCapacity = stats.maxDeadCapacity; in ObserveStats()
133 entry->second.minDeadCapacity = stats.minDeadCapacity; in ObserveStats()
136 WebCache::UsageStats stats_details(stats); in ObserveStats()
[all …]
/external/yaffs2/yaffs2/utils/
Dmkyaffs2image.c363 struct stat stats; in process_directory() local
369 lstat(full_name,&stats); in process_directory()
399 stats.st_mode) < 0) { in process_directory()
408 if(S_ISLNK(stats.st_mode) || in process_directory()
409 S_ISREG(stats.st_mode) || in process_directory()
410 S_ISDIR(stats.st_mode) || in process_directory()
411 S_ISFIFO(stats.st_mode) || in process_directory()
412 S_ISBLK(stats.st_mode) || in process_directory()
413 S_ISCHR(stats.st_mode) || in process_directory()
414 S_ISSOCK(stats.st_mode)) in process_directory()
[all …]
Dmkyaffsimage.c404 struct stat stats; in process_directory() local
410 lstat(full_name,&stats); in process_directory()
412 if(S_ISLNK(stats.st_mode) || in process_directory()
413 S_ISREG(stats.st_mode) || in process_directory()
414 S_ISDIR(stats.st_mode) || in process_directory()
415 S_ISFIFO(stats.st_mode) || in process_directory()
416 S_ISBLK(stats.st_mode) || in process_directory()
417 S_ISCHR(stats.st_mode) || in process_directory()
418 S_ISSOCK(stats.st_mode)) in process_directory()
427 if((equivalentObj = find_obj_in_list(stats.st_dev, stats.st_ino)) > 0) in process_directory()
[all …]
/external/webkit/Source/WebKit/efl/ewk/
Dewk_tiled_matrix.c52 } stats; member
76 if (t->updates || t->stats.full_update) in _ewk_tile_matrix_cell_free()
88 tm->stats.bytes.freed += t->bytes; in _ewk_tile_matrix_cell_free()
89 tm->stats.tiles.freed++; in _ewk_tile_matrix_cell_free()
112 if (t->updates || t->stats.full_update) in _ewk_tile_matrix_tile_free()
131 tm->stats.bytes.freed += t->bytes; in _ewk_tile_matrix_tile_free()
132 tm->stats.tiles.freed++; in _ewk_tile_matrix_tile_free()
208 tiles = tm->stats.tiles.allocated - tm->stats.tiles.freed; in ewk_tile_matrix_free()
209 bytes = tm->stats.bytes.allocated - tm->stats.bytes.freed; in ewk_tile_matrix_free()
217 tm->stats.tiles.allocated, tm->stats.tiles.freed, tiles, in ewk_tile_matrix_free()
[all …]
/external/libvpx/
Dvpxenc.c121 int stats_open_file(stats_io_t *stats, const char *fpf, int pass) in stats_open_file() argument
125 stats->pass = pass; in stats_open_file()
129 stats->file = fopen(fpf, "wb"); in stats_open_file()
130 stats->buf.sz = 0; in stats_open_file()
131 stats->buf.buf = NULL, in stats_open_file()
132 res = (stats->file != NULL); in stats_open_file()
142 stats->file = fdopen(fd, "rb"); in stats_open_file()
144 stats->buf.sz = stat_buf.st_size; in stats_open_file()
145 stats->buf.buf = mmap(NULL, stats->buf.sz, PROT_READ, MAP_PRIVATE, in stats_open_file()
147 res = (stats->buf.buf != NULL); in stats_open_file()
[all …]
/external/webp/src/enc/
Dwebpenc.c282 WebPAuxStats* stats = enc->pic_->stats; in FinalizePSNR() local
285 stats->PSNR[0] = (float)GetPSNR(sse[0], size); in FinalizePSNR()
286 stats->PSNR[1] = (float)GetPSNR(sse[1], size / 4); in FinalizePSNR()
287 stats->PSNR[2] = (float)GetPSNR(sse[2], size / 4); in FinalizePSNR()
288 stats->PSNR[3] = (float)GetPSNR(sse[0] + sse[1] + sse[2], size * 3 / 2); in FinalizePSNR()
289 stats->PSNR[4] = (float)GetPSNR(sse[3], size); in FinalizePSNR()
293 WebPAuxStats* const stats = enc->pic_->stats; in StoreStats() local
294 if (stats != NULL) { in StoreStats()
297 stats->segment_level[i] = enc->dqm_[i].fstrength_; in StoreStats()
298 stats->segment_quant[i] = enc->dqm_[i].quant_; in StoreStats()
[all …]
Dfilter.c251 DistoStats* const stats) { in VP8SSIMAccumulate() argument
263 stats->w += 1; in VP8SSIMAccumulate()
264 stats->xm += s1; in VP8SSIMAccumulate()
265 stats->ym += s2; in VP8SSIMAccumulate()
266 stats->xxm += s1 * s1; in VP8SSIMAccumulate()
267 stats->xym += s1 * s2; in VP8SSIMAccumulate()
268 stats->yym += s2 * s2; in VP8SSIMAccumulate()
273 double VP8SSIMGet(const DistoStats* const stats) { in VP8SSIMGet() argument
274 const double xmxm = stats->xm * stats->xm; in VP8SSIMGet()
275 const double ymym = stats->ym * stats->ym; in VP8SSIMGet()
[all …]
Dalpha.c52 WebPAuxStats* const stats) { in EncodeLossless() argument
62 picture.stats = stats; in EncodeLossless()
106 WebPAuxStats* const stats) { in EncodeAlphaInternal() argument
142 ok = EncodeLossless(alpha_src, width, height, effort_level, bw, stats); in EncodeAlphaInternal()
215 effort_level, NULL, &bw, pic->stats); in EncodeAlpha()
241 if (pic->stats != NULL) best_stats = *pic->stats; in EncodeAlpha()
252 pic->stats); in EncodeAlpha()
261 if (pic->stats != NULL) best_stats = *pic->stats; in EncodeAlpha()
268 if (pic->stats != NULL) *pic->stats = best_stats; in EncodeAlpha()
274 if (pic->stats != NULL) { // need stats? in EncodeAlpha()
[all …]
/external/webkit/Source/JavaScriptCore/runtime/
DMemoryStatistics.cpp37 GlobalMemoryStatistics stats; in globalMemoryStatistics() local
39 stats.stackBytes = RegisterFile::committedByteCount(); in globalMemoryStatistics()
41 stats.JITBytes = ExecutableAllocator::committedByteCount(); in globalMemoryStatistics()
43 stats.JITBytes = 0; in globalMemoryStatistics()
45 return stats; in globalMemoryStatistics()
/external/libvpx/examples/
Dtwopass_encoder.txt17 vpx_fixed_buf_t stats = {0};
33 cfg.rc_twopass_stats_in = stats;
57 stats.buf = realloc(stats.buf, stats.sz
59 if(!stats.buf)
61 memcpy((char*)stats.buf + stats.sz,
64 stats.sz += pkt->data.twopass_stats.sz;
/external/libppp/src/
Dhdlc.c326 p->hdlc.stats.badfcs++; in hdlc_LayerPull()
389 hdlc->stats.badfcs); in hdlc_ReportStatus()
391 HDLC_ADDR, hdlc->stats.badaddr); in hdlc_ReportStatus()
393 HDLC_UI, hdlc->stats.badcommand); in hdlc_ReportStatus()
395 hdlc->stats.unknownproto); in hdlc_ReportStatus()
407 if (memcmp(&hdlc->laststats, &hdlc->stats, sizeof hdlc->stats)) { in hdlc_ReportTime()
411 hdlc->stats.badfcs - hdlc->laststats.badfcs, in hdlc_ReportTime()
412 hdlc->stats.badaddr - hdlc->laststats.badaddr, in hdlc_ReportTime()
413 hdlc->stats.badcommand - hdlc->laststats.badcommand, in hdlc_ReportTime()
414 hdlc->stats.unknownproto - hdlc->laststats.unknownproto); in hdlc_ReportTime()
[all …]
/external/bison/lib/
Dbitset_stats.c171 struct bitset_type_info_struct *stats) in bitset_stats_print_1() argument
173 if (!stats) in bitset_stats_print_1()
178 stats->allocs, stats->frees, in bitset_stats_print_1()
179 stats->allocs ? 100.0 * stats->frees / stats->allocs : 0); in bitset_stats_print_1()
181 stats->sets, stats->cache_sets, in bitset_stats_print_1()
182 stats->sets ? 100.0 * stats->cache_sets / stats->sets : 0); in bitset_stats_print_1()
184 stats->resets, stats->cache_resets, in bitset_stats_print_1()
185 stats->resets ? 100.0 * stats->cache_resets / stats->resets : 0); in bitset_stats_print_1()
187 stats->tests, stats->cache_tests, in bitset_stats_print_1()
188 stats->tests ? 100.0 * stats->cache_tests / stats->tests : 0); in bitset_stats_print_1()
[all …]
/external/webkit/Source/WebKit2/Shared/mac/
DWebMemorySampler.mac.mm62 malloc_statistics_t stats;
63 stats.blocks_in_use = 0;
64 stats.size_in_use = 0;
65 stats.max_size_in_use = 0;
66 stats.size_allocated = 0;
67 mallocStats.defaultMallocZoneStats = stats;
68 mallocStats.dispatchContinuationMallocZoneStats = stats;
69 mallocStats.purgeableMallocZoneStats = stats;
74 stats.blocks_in_use = 0;
75 stats.size_in_use = 0;
[all …]
/external/iproute2/misc/
Darpd.c86 } stats; variable
233 stats.probes_sent++; in send_probe()
259 stats.probes_suppressed++; in queue_active_probe()
351 stats.app_bad++; in do_one_request()
363 stats.app_neg++; in do_one_request()
369 stats.app_recv++; in do_one_request()
371 stats.app_success++; in do_one_request()
380 stats.app_suppressed++; in do_one_request()
405 stats.kern_neg++; in do_one_request()
415 stats.kern_change++; in do_one_request()
[all …]

12345678910>>...15