/external/libvpx/libvpx/ |
D | vpxstats.c | 19 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() 34 stats->file = fdopen(fd, "rb"); in stats_open_file() 36 stats->buf.sz = stat_buf.st_size; in stats_open_file() 37 stats->buf.buf = mmap(NULL, stats->buf.sz, PROT_READ, MAP_PRIVATE, fd, 0); in stats_open_file() 38 res = (stats->buf.buf != NULL); in stats_open_file() [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheLoadingTest.java | 106 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 …]
|
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 | 82 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 …]
|
D | AbstractCacheTest.java | 73 CacheStats stats = counter.snapshot(); in testEmptySimpleStats() local 74 assertEquals(0, stats.requestCount()); in testEmptySimpleStats() 75 assertEquals(0, stats.hitCount()); in testEmptySimpleStats() 76 assertEquals(1.0, stats.hitRate()); in testEmptySimpleStats() 77 assertEquals(0, stats.missCount()); in testEmptySimpleStats() 78 assertEquals(0.0, stats.missRate()); in testEmptySimpleStats() 79 assertEquals(0, stats.loadSuccessCount()); in testEmptySimpleStats() 80 assertEquals(0, stats.loadExceptionCount()); in testEmptySimpleStats() 81 assertEquals(0, stats.loadCount()); in testEmptySimpleStats() 82 assertEquals(0, stats.totalLoadTime()); in testEmptySimpleStats() [all …]
|
/external/compiler-rt/lib/asan/ |
D | asan_stats.cc | 62 void AsanStats::MergeFrom(const AsanStats *stats) { in MergeFrom() argument 64 const uptr *src_ptr = reinterpret_cast<const uptr*>(stats); in MergeFrom() 83 accumulated_stats->MergeFrom(&t->stats()); in MergeThreadStats() 86 static void GetAccumulatedStats(AsanStats *stats) { in GetAccumulatedStats() argument 87 stats->Clear(); in GetAccumulatedStats() 91 .RunCallbackForEachThreadLocked(MergeThreadStats, stats); in GetAccumulatedStats() 93 stats->MergeFrom(&unknown_thread_stats); in GetAccumulatedStats() 96 stats->MergeFrom(&dead_threads_stats); in GetAccumulatedStats() 101 if (max_malloced_memory < stats->malloced) { in GetAccumulatedStats() 102 max_malloced_memory = stats->malloced; in GetAccumulatedStats() [all …]
|
/external/linux-tools-perf/src/tools/perf/util/ |
D | stat.c | 5 void update_stats(struct stats *stats, u64 val) in update_stats() argument 9 stats->n++; in update_stats() 10 delta = val - stats->mean; in update_stats() 11 stats->mean += delta / stats->n; in update_stats() 12 stats->M2 += delta*(val - stats->mean); in update_stats() 14 if (val > stats->max) in update_stats() 15 stats->max = val; in update_stats() 17 if (val < stats->min) in update_stats() 18 stats->min = val; in update_stats() 21 double avg_stats(struct stats *stats) in avg_stats() argument [all …]
|
D | stat.h | 6 struct stats struct 12 void update_stats(struct stats *stats, u64 val); argument 13 double avg_stats(struct stats *stats); 14 double stddev_stats(struct stats *stats); 17 static inline void init_stats(struct stats *stats) in init_stats() argument 19 stats->n = 0.0; in init_stats() 20 stats->mean = 0.0; in init_stats() 21 stats->M2 = 0.0; in init_stats() 22 stats->min = (u64) -1; in init_stats() 23 stats->max = 0; in init_stats()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowSyncResult.java | 31 return result.syncAlreadyInProgress || result.stats.numIoExceptions > 0; in hasSoftError() 36 return result.stats.numParseExceptions > 0 in hasHardError() 37 || result.stats.numConflictDetectedExceptions > 0 in hasHardError() 38 || result.stats.numAuthExceptions > 0 in hasHardError() 51 return ((result.stats.numDeletes > 0) && !result.tooManyDeletions) in madeSomeProgress() 52 || result.stats.numInserts > 0 in madeSomeProgress() 53 || result.stats.numUpdates > 0; in madeSomeProgress() 69 result.stats.clear(); in clear() 76 private SyncStats stats; field in ShadowSyncResult.ShadowSyncStats 80 stats.numAuthExceptions = 0; in clear() [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/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/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/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ICURWLock.java | 40 private Stats stats = null; field in ICURWLock 102 Stats result = stats; in resetStats() 103 stats = new Stats(); in resetStats() 111 Stats result = stats; in clearStats() 112 stats = null; in clearStats() 120 return stats == null ? null : new Stats(stats); in getStats() 134 if (stats != null) { // stats is null by default in acquireRead() 136 stats._rc++; in acquireRead() 138 stats._mrc++; in acquireRead() 141 stats._wrc++; in acquireRead() [all …]
|
/external/zopfli/src/zopfli/ |
D | squeeze.c | 42 static void InitStats(SymbolStats* stats) { in InitStats() argument 43 memset(stats->litlens, 0, 288 * sizeof(stats->litlens[0])); in InitStats() 44 memset(stats->dists, 0, 32 * sizeof(stats->dists[0])); in InitStats() 46 memset(stats->ll_symbols, 0, 288 * sizeof(stats->ll_symbols[0])); in InitStats() 47 memset(stats->d_symbols, 0, 32 * sizeof(stats->d_symbols[0])); in InitStats() 98 static void RandomizeStatFreqs(RanState* state, SymbolStats* stats) { in RandomizeStatFreqs() argument 99 RandomizeFreqs(state, stats->litlens, 288); in RandomizeStatFreqs() 100 RandomizeFreqs(state, stats->dists, 32); in RandomizeStatFreqs() 101 stats->litlens[256] = 1; /* End symbol. */ in RandomizeStatFreqs() 104 static void ClearStatFreqs(SymbolStats* stats) { in ClearStatFreqs() argument [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | gen_bitmap64.c | 83 #define INC_STAT(map, name) map->stats.name 127 if (gettimeofday(&bitmap->stats.created, in ext2fs_alloc_generic_bmap() 133 bitmap->stats.type = type; in ext2fs_alloc_generic_bmap() 179 struct ext2_bmap_statistics *stats = &bitmap->stats; in ext2fs_print_bmap_statistics() local 188 if (stats->test_count) { in ext2fs_print_bmap_statistics() 189 test_seq_perc = ((float)stats->test_seq / in ext2fs_print_bmap_statistics() 190 stats->test_count) * 100; in ext2fs_print_bmap_statistics() 191 test_back_perc = ((float)stats->test_back / in ext2fs_print_bmap_statistics() 192 stats->test_count) * 100; in ext2fs_print_bmap_statistics() 195 if (stats->mark_count) { in ext2fs_print_bmap_statistics() [all …]
|
/external/libnfc-nci/src/nfc/tags/ |
D | rw_main.c | 62 memset (&rw_cb.stats, 0, sizeof (tRW_STATS)); in rw_main_reset_stats() 65 rw_cb.stats.start_tick = GKI_get_tick_count (); in rw_main_reset_stats() 79 rw_cb.stats.bytes_sent+=num_bytes; in rw_main_update_tx_stats() 80 rw_cb.stats.num_ops++; in rw_main_update_tx_stats() 83 rw_cb.stats.num_retries++; in rw_main_update_tx_stats() 97 rw_cb.stats.num_fail++; in rw_main_update_fail_stats() 111 rw_cb.stats.num_crc++; in rw_main_update_crc_error_stats() 125 rw_cb.stats.num_trans_err++; in rw_main_update_trans_error_stats() 139 rw_cb.stats.bytes_received+=num_bytes; in rw_main_update_rx_stats() 155 ticks = GKI_get_tick_count () - rw_cb.stats.start_tick; in rw_main_log_stats() [all …]
|
/external/skia/tools/lua/ |
D | count_reduced_clipstacks.lua | 1 stats = {} 44 if (stats[stackstr] == nil) then 45 stats[stackstr] = {} 46 stats[stackstr].drawCnt = 0 47 stats[stackstr].instanceCnt = 0 49 stats[stackstr].drawCnt = stats[stackstr].drawCnt + 1 51 stats[stackstr].instanceCnt = stats[stackstr].instanceCnt + 1 58 function print_stats(stats) 63 for k,v in pairs(stats) do 73 print_stats(stats)
|
/external/webp/src/enc/ |
D | filter.c | 125 DistoStats* const stats) { in VP8SSIMAccumulate() argument 137 stats->w += 1; in VP8SSIMAccumulate() 138 stats->xm += s1; in VP8SSIMAccumulate() 139 stats->ym += s2; in VP8SSIMAccumulate() 140 stats->xxm += s1 * s1; in VP8SSIMAccumulate() 141 stats->xym += s1 * s2; in VP8SSIMAccumulate() 142 stats->yym += s2 * s2; in VP8SSIMAccumulate() 147 double VP8SSIMGet(const DistoStats* const stats) { in VP8SSIMGet() argument 148 const double xmxm = stats->xm * stats->xm; in VP8SSIMGet() 149 const double ymym = stats->ym * stats->ym; in VP8SSIMGet() [all …]
|
D | webpenc.c | 258 WebPAuxStats* stats = enc->pic_->stats; in FinalizePSNR() local 261 stats->PSNR[0] = (float)GetPSNR(sse[0], size); in FinalizePSNR() 262 stats->PSNR[1] = (float)GetPSNR(sse[1], size / 4); in FinalizePSNR() 263 stats->PSNR[2] = (float)GetPSNR(sse[2], size / 4); in FinalizePSNR() 264 stats->PSNR[3] = (float)GetPSNR(sse[0] + sse[1] + sse[2], size * 3 / 2); in FinalizePSNR() 265 stats->PSNR[4] = (float)GetPSNR(sse[3], size); in FinalizePSNR() 269 WebPAuxStats* const stats = enc->pic_->stats; in StoreStats() local 270 if (stats != NULL) { in StoreStats() 273 stats->segment_level[i] = enc->dqm_[i].fstrength_; in StoreStats() 274 stats->segment_quant[i] = enc->dqm_[i].quant_; in StoreStats() [all …]
|
D | picture_psnr.c | 66 DistoStats stats[5]; in WebPPictureDistortion() local 89 memset(stats, 0, sizeof(stats)); in WebPPictureDistortion() 122 src->width, src->height, &stats[0]); in WebPPictureDistortion() 125 uv_w, uv_h, &stats[1]); in WebPPictureDistortion() 128 uv_w, uv_h, &stats[2]); in WebPPictureDistortion() 132 src->width, src->height, &stats[3]); in WebPPictureDistortion() 136 const double v = VP8SSIMGet(&stats[c]); in WebPPictureDistortion() 140 const double v = VP8SSIMGetSquaredError(&stats[c]); in WebPPictureDistortion() 144 if (c < 4) VP8SSIMAddStats(&stats[c], &stats[4]); in WebPPictureDistortion()
|
/external/chromium-trace/trace-viewer/third_party/Paste/paste/debug/ |
D | profile.py | 12 import hotshot.stats 75 stats = hotshot.stats.load(self.log_filename) 76 stats.strip_dirs() 77 stats.sort_stats('time', 'calls') 78 output = capture_output(stats.print_stats, self.limit) 80 stats.print_callers, self.limit) 176 stats = hotshot.stats.load(prof_filename) 179 stats.strip_dirs() 180 stats.sort_stats(*ops.get('sort_stats', ('time', 'calls'))) 182 output = capture_output(stats.print_stats, display_limit) [all …]
|
/external/libvpx/libvpx/examples/ |
D | twopass_encoder.c | 75 vpx_fixed_buf_t *stats) { in get_frame_stats() argument 87 stats->buf = realloc(stats->buf, stats->sz + pkt_size); in get_frame_stats() 88 memcpy((uint8_t *)stats->buf + stats->sz, pkt_buf, pkt_size); in get_frame_stats() 89 stats->sz += pkt_size; in get_frame_stats() 129 vpx_fixed_buf_t stats = {0}; in main() local 190 cfg.rc_twopass_stats_in = stats; in main() 204 &stats); in main() 213 &stats); in main() 225 free(stats.buf); in main()
|
/external/jemalloc/src/ |
D | arena.c | 563 arena->stats.mapped += chunksize; in arena_chunk_alloc_internal() 564 arena->stats.metadata_mapped += (map_bias << LG_PAGE); in arena_chunk_alloc_internal() 681 arena->stats.mapped -= chunksize; in arena_chunk_dalloc() 682 arena->stats.metadata_mapped -= (map_bias << LG_PAGE); in arena_chunk_dalloc() 695 arena->stats.nmalloc_huge++; in arena_huge_malloc_stats_update() 696 arena->stats.allocated_huge += usize; in arena_huge_malloc_stats_update() 697 arena->stats.hstats[index].nmalloc++; in arena_huge_malloc_stats_update() 698 arena->stats.hstats[index].curhchunks++; in arena_huge_malloc_stats_update() 708 arena->stats.nmalloc_huge--; in arena_huge_malloc_stats_update_undo() 709 arena->stats.allocated_huge -= usize; in arena_huge_malloc_stats_update_undo() [all …]
|
/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 …]
|