/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheLoadingTest.java | 102 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 …]
|
D | CacheManualTest.java | 31 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 …]
|
D | CacheStatsTest.java | 29 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 …]
|
D | LocalLoadingCacheTest.java | 87 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 …]
|
D | AbstractCacheTest.java | 85 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/ |
D | taskstats_kern.h | 27 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/ |
D | stats.cc | 72 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/ |
D | Profiler.java | 146 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/ |
D | Profiler.cs | 90 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/ |
D | Profiler.cs | 90 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/chromium/chrome/browser/renderer_host/ |
D | web_cache_manager.cc | 84 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 …]
|
D | web_cache_manager_unittest.cc | 32 static std::map<int, WebCacheManager::RendererInfo>& stats( in stats() function in WebCacheManagerTest 38 stats(h)[renderer_id].access = Time::Now() - TimeDelta::FromMinutes( in SimulateInactivity() 51 WebCache::UsageStats* stats) { in GatherStats() argument 52 h->GatherStats(renderers, stats); in GatherStats() 55 const WebCache::UsageStats& stats) { in GetSize() argument 57 static_cast<WebCacheManager::AllocationTactic>(tactic), stats); in GetSize() 162 EXPECT_EQ(1U, stats(manager()).size()); in TEST_F() 166 EXPECT_EQ(1U, stats(manager()).size()); in TEST_F() 167 EXPECT_TRUE(kStats == stats(manager())[kRendererID]); in TEST_F() 191 WebCache::UsageStats stats; in TEST_F() local [all …]
|
/external/yaffs2/yaffs2/utils/ |
D | mkyaffs2image.c | 363 struct stat stats; in process_directory() local 369 lstat(full_name,&stats); in process_directory() 387 stats.st_mode) < 0) { in process_directory() 394 if(S_ISLNK(stats.st_mode) || in process_directory() 395 S_ISREG(stats.st_mode) || in process_directory() 396 S_ISDIR(stats.st_mode) || in process_directory() 397 S_ISFIFO(stats.st_mode) || in process_directory() 398 S_ISBLK(stats.st_mode) || in process_directory() 399 S_ISCHR(stats.st_mode) || in process_directory() 400 S_ISSOCK(stats.st_mode)) in process_directory() [all …]
|
D | mkyaffsimage.c | 404 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/ |
D | ewk_tiled_matrix.c | 52 } 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/ |
D | vpxenc.c | 121 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/llvm/lib/Transforms/Instrumentation/ |
D | ThreadSanitizer.cpp | 91 ThreadSanitizerStats stats; member 114 memset(&stats, 0, sizeof(stats)); in doInitialization() 146 << ": wr " << stats.NumInstrumentedWrites in doFinalization() 147 << "; rd " << stats.NumInstrumentedReads in doFinalization() 148 << "; vt " << stats.NumInstrumentedVtableWrites in doFinalization() 149 << "; bs " << stats.NumAccessesWithBadSize in doFinalization() 150 << "; rbw " << stats.NumOmittedReadsBeforeWrite in doFinalization() 151 << "; rcg " << stats.NumOmittedReadsFromConstantGlobals in doFinalization() 152 << "; rvt " << stats.NumOmittedReadsFromVtable in doFinalization() 176 stats.NumOmittedReadsFromConstantGlobals++; in addrPointsToConstantData() [all …]
|
/external/webkit/Source/JavaScriptCore/runtime/ |
D | MemoryStatistics.cpp | 37 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/webp/src/enc/ |
D | filter.c | 243 SSIMStats* const stats) { in Accumulate() argument 255 stats->w += 1; in Accumulate() 256 stats->xm += s1; in Accumulate() 257 stats->ym += s2; in Accumulate() 258 stats->xxm += s1 * s1; in Accumulate() 259 stats->xym += s1 * s2; in Accumulate() 260 stats->yym += s2 * s2; in Accumulate() 265 static double GetSSIM(const SSIMStats* const stats) { in GetSSIM() argument 266 const double xmxm = stats->xm * stats->xm; in GetSSIM() 267 const double ymym = stats->ym * stats->ym; in GetSSIM() [all …]
|
D | webpenc.c | 276 WebPAuxStats* stats = enc->pic_->stats; in FinalizePSNR() local 279 stats->PSNR[0] = (float)GetPSNR(sse[0], size); in FinalizePSNR() 280 stats->PSNR[1] = (float)GetPSNR(sse[1], size / 4); in FinalizePSNR() 281 stats->PSNR[2] = (float)GetPSNR(sse[2], size / 4); in FinalizePSNR() 282 stats->PSNR[3] = (float)GetPSNR(sse[0] + sse[1] + sse[2], size * 3 / 2); in FinalizePSNR() 286 WebPAuxStats* const stats = enc->pic_->stats; in StoreStats() local 287 if (stats) { in StoreStats() 290 stats->segment_level[i] = enc->dqm_[i].fstrength_; in StoreStats() 291 stats->segment_quant[i] = enc->dqm_[i].quant_; in StoreStats() 293 stats->residual_bytes[s][i] = enc->residual_bytes_[s][i]; in StoreStats() [all …]
|
/external/libvpx/examples/ |
D | twopass_encoder.txt | 17 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/bison/lib/ |
D | bitset_stats.c | 171 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/ |
D | WebMemorySampler.mac.mm | 62 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/ |
D | arpd.c | 86 } 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 …]
|
/external/blktrace/btt/ |
D | iostat.c | 27 (dip)->stats. fld ++; \ 33 (dip)->stats. fld --; \ 40 (dip)->stats. fld += __v; \ 47 (dip)->stats. fld -= __v; \ 65 dip->stats.tot_qusz += ((now - dip->stats.last_qu_change) * in update_tot_qusz() 66 dip->stats.cur_qusz); in update_tot_qusz() 70 dip->stats.last_qu_change = dip->all_stats.last_qu_change = now; in update_tot_qusz() 75 if (dip->stats.cur_dev == 0 || force) { in update_idle_time() 76 dip->stats.idle_time += (now - dip->stats.last_dev_change); in update_idle_time() 80 dip->stats.last_dev_change = dip->all_stats.last_dev_change = now; in update_idle_time() [all …]
|