/external/chromium_org/third_party/tcmalloc/chromium/src/ |
D | central_freelist.cc | 56 cache_size_ = 0; in Init() 58 cache_size_ = 16; in Init() 75 cache_size_ = (min)(cache_size_, max_cache_size_); in Init() 78 ASSERT(cache_size_ <= max_cache_size_); in Init() 167 if (used_slots_ < cache_size_) return true; in MakeCacheSpace() 169 if (cache_size_ == max_cache_size_) return false; in MakeCacheSpace() 178 if (cache_size_ < max_cache_size_) { in MakeCacheSpace() 179 cache_size_++; in MakeCacheSpace() 204 if (cache_size_ == 0) return false; in ShrinkCache() 206 if (force == false && used_slots_ == cache_size_) return false; in ShrinkCache() [all …]
|
D | central_freelist.h | 175 int32_t cache_size_; variable
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
D | central_freelist.cc | 56 cache_size_ = 0; in Init() 58 cache_size_ = 16; in Init() 75 cache_size_ = (min)(cache_size_, max_cache_size_); in Init() 78 ASSERT(cache_size_ <= max_cache_size_); in Init() 168 if (used_slots_ < cache_size_) return true; in MakeCacheSpace() 170 if (cache_size_ == max_cache_size_) return false; in MakeCacheSpace() 179 if (cache_size_ < max_cache_size_) { in MakeCacheSpace() 180 cache_size_++; in MakeCacheSpace() 205 if (cache_size_ == 0) return false; in ShrinkCache() 207 if (force == false && used_slots_ == cache_size_) return false; in ShrinkCache() [all …]
|
D | central_freelist.h | 175 int32_t cache_size_; variable
|
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
D | cache.h | 73 cache_gc_(FLAGS_fst_default_cache_gc), cache_size_(0), in CacheBaseImpl() 81 cache_first_state_(0), cache_gc_(opts.gc), cache_size_(0), in CacheBaseImpl() 139 cache_size_ += sizeof(S) + in ExtendState() 148 cache_size_ += sizeof(S); in ExtendState() 149 if (cache_size_ > cache_limit_) in ExtendState() 192 cache_size_ += arcs.capacity() * sizeof(Arc); in SetArcs() 193 if (cache_size_ > cache_limit_) in SetArcs() 278 << ", cache size = " << cache_size_ in GC() 286 if (cache_size_ > cache_target && state->ref_count == 0 && in GC() 288 cache_size_ -= sizeof(S) + state->arcs.capacity() * sizeof(Arc); in GC() [all …]
|
/external/openfst/src/include/fst/ |
D | cache.h | 123 cache_gc_(FLAGS_fst_default_cache_gc), cache_size_(0), in cache_start_() 134 cache_first_state_(0), cache_gc_(opts.gc), cache_size_(0), in cache_start_() 146 cache_first_state_(0), cache_gc_(impl.cache_gc_), cache_size_(0), 161 cache_size_ = impl.cache_size_; 242 cache_size_ += sizeof(Arc); in AddArc() 243 if (cache_size_ > cache_limit_) in AddArc() 275 cache_size_ += arcs.capacity() * sizeof(Arc); in SetArcs() 276 if (cache_size_ > cache_limit_) in SetArcs() 302 cache_size_ -= n * sizeof(Arc); in DeleteArcs() 316 cache_size_ -= n * sizeof(Arc); in DeleteArcs() [all …]
|
D | accumulator.h | 350 : cache_gc_(gc), cache_limit_(gc_limit), cache_size_(0) {} in CacheLogAccumulatorData() 372 if (cache_gc_ && cache_size_ >= cache_limit_) in AddWeights() 376 cache_size_ += weights->capacity() * sizeof(double); in AddWeights() 399 while (it != cache_.end() && cache_size_ > cache_target) { in GC() 402 cache_size_ -= cs.weights->capacity() * sizeof(double); in GC() 410 if (!free_recent && cache_size_ > cache_target) in GC() 417 size_t cache_size_; // # of bytes allowed before GC variable
|
/external/chromium_org/third_party/webrtc/base/ |
D | systeminfo.cc | 111 : physical_cpus_(1), logical_cpus_(1), cache_size_(0), in SystemInfo() 129 GetProcessorInformation(&physical_cpus_, &cache_size_); in SystemInfo() 149 cache_size_ = static_cast<int>(sysctl_value64); in SystemInfo() 151 if (!cache_size_) { in SystemInfo() 154 cache_size_ = static_cast<int>(sysctl_value64); in SystemInfo() 182 proc_info.GetSectionIntValue(0, "cache size", &cache_size_); in SystemInfo() 183 cache_size_ *= 1024; in SystemInfo() 201 if (cache_size_ == 0) { in SystemInfo() 206 cache_size_ = (cpu_info[2] >> 16) * 1024; in SystemInfo() 275 return cache_size_; in GetCpuCacheSize()
|
D | systeminfo.h | 68 int cache_size_; variable
|
/external/chromium_org/net/disk_cache/simple/ |
D | simple_index.cc | 145 cache_size_(0), in SimpleIndex() 290 if (eviction_in_progress_ || cache_size_ <= high_watermark_) in StartEvictionIfNeeded() 297 cache_size_ / kBytesInKb); in StartEvictionIfNeeded() 313 while (evicted_so_far_size < cache_size_ - low_watermark_) { in StartEvictionIfNeeded() 360 cache_size_ / kBytesInKb); in EvictionDone() 386 DCHECK_GE(cache_size_, implicit_cast<uint64>((*it)->second.GetEntrySize())); in UpdateEntryIteratorSize() 387 cache_size_ -= (*it)->second.GetEntrySize(); in UpdateEntryIteratorSize() 388 cache_size_ += entry_size; in UpdateEntryIteratorSize() 422 cache_size_ = merged_cache_size; in MergeInitializingSet() 478 index_file_->WriteToDisk(entries_set_, cache_size_, in WriteToDisk()
|
D | simple_index_file.cc | 151 cache_size_(0) {} in IndexMetadata() 158 cache_size_(cache_size) {} in IndexMetadata() 165 pickle->WriteUInt64(cache_size_); in Serialize() 183 it->ReadUInt64(&cache_size_); in Deserialize()
|
D | simple_index_file_unittest.cc | 46 EXPECT_EQ(0U, index_metadata.cache_size_); in TEST() 63 EXPECT_EQ(new_index_metadata.cache_size_, index_metadata.cache_size_); in TEST()
|
D | simple_index_file.h | 74 uint64 cache_size_; // Total cache storage size in bytes. variable
|
D | simple_index.h | 163 uint64 cache_size_; // Total cache storage size in bytes. variable
|
D | simple_index_unittest.cc | 208 EXPECT_EQ(9U, index()->cache_size_); in TEST_F() 214 EXPECT_EQ(9U, index()->cache_size_); in TEST_F() 226 EXPECT_EQ(2U + 3U + 4U + 11U, index()->cache_size_); in TEST_F()
|
/external/chromium_org/content/browser/appcache/ |
D | appcache.cc | 24 cache_size_(0), in AppCache() 48 cache_size_ += entry.response_size(); in AddEntry() 59 cache_size_ += entry.response_size(); // New entry. Add to cache size. in AddOrModifyEntry() 66 cache_size_ -= found->second.response_size(); in RemoveEntry() 166 DCHECK(cache_size_ == cache_record.cache_size); in InitializeWithDatabaseRecords()
|
D | appcache.h | 108 int64 cache_size() const { return cache_size_; } in cache_size() 195 int64 cache_size_; variable
|
/external/chromium_org/sql/ |
D | connection.h | 106 void set_cache_size(int cache_size) { cache_size_ = cache_size; } in set_cache_size() 557 int cache_size_; variable
|
D | connection.cc | 216 cache_size_(0), in Connection() 324 sqlite3_int64 preload_size = page_size * (cache_size_ ? cache_size_ : 2000); in Preload() 997 if (cache_size_ != 0) { in OpenInternal() 999 base::StringPrintf("PRAGMA cache_size=%d", cache_size_); in OpenInternal()
|
/external/stressapptest/src/ |
D | sat.h | 177 int cache_size_; // Size of disk cache. variable
|
D | sat.cc | 711 cache_size_ = -1; in Sat() 848 ARG_IVALUE("--cache-size", cache_size_); in ParseArgs() 1194 segment_size_, cache_size_, in InitializeThreads() 1211 segment_size_, cache_size_, in InitializeThreads()
|
D | worker.cc | 2543 cache_size_ = 16 * 1024 * 1024; // assume 16MiB cache by default in DiskThread() 2547 queue_size_ = ((cache_size_ / write_block_size_) * 3) / 2; in DiskThread() 2639 cache_size_ = cache_size; in SetParameters() 2688 queue_size_ = ((cache_size_ / write_block_size_) * 3) / 2; in SetParameters() 2801 sat_assert(device_sectors_ * kSectorSize > 3 * cache_size_); in DoWork()
|
D | worker.h | 732 int cache_size_; // Size of disk cache, in bytes. variable
|