Home
last modified time | relevance | path

Searched refs:cache_size_ (Results 1 – 23 of 23) sorted by relevance

/external/chromium_org/third_party/tcmalloc/chromium/src/
Dcentral_freelist.cc56 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 …]
Dcentral_freelist.h175 int32_t cache_size_; variable
/external/chromium_org/third_party/tcmalloc/vendor/src/
Dcentral_freelist.cc56 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 …]
Dcentral_freelist.h175 int32_t cache_size_; variable
/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dcache.h73 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/chromium_org/third_party/libjingle/source/talk/base/
Dsysteminfo.cc128 : physical_cpus_(1), logical_cpus_(1), cache_size_(0), in SystemInfo()
146 GetProcessorInformation(&physical_cpus_, &cache_size_); in SystemInfo()
166 cache_size_ = static_cast<int>(sysctl_value64); in SystemInfo()
168 if (!cache_size_) { in SystemInfo()
171 cache_size_ = static_cast<int>(sysctl_value64); in SystemInfo()
199 proc_info.GetSectionIntValue(0, "cache size", &cache_size_); in SystemInfo()
200 cache_size_ *= 1024; in SystemInfo()
218 if (cache_size_ == 0) { in SystemInfo()
223 cache_size_ = (cpu_info[2] >> 16) * 1024; in SystemInfo()
292 return cache_size_; in GetCpuCacheSize()
Dsysteminfo.h85 int cache_size_; variable
/external/chromium_org/third_party/webrtc/base/
Dsysteminfo.cc111 : 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()
Dsysteminfo.h68 int cache_size_; variable
/external/chromium_org/net/disk_cache/simple/
Dsimple_index.cc144 cache_size_(0), in SimpleIndex()
288 if (eviction_in_progress_ || cache_size_ <= high_watermark_) in StartEvictionIfNeeded()
295 cache_size_ / kBytesInKb); in StartEvictionIfNeeded()
311 while (evicted_so_far_size < cache_size_ - low_watermark_) { in StartEvictionIfNeeded()
358 cache_size_ / kBytesInKb); in EvictionDone()
384 DCHECK_GE(cache_size_, implicit_cast<uint64>((*it)->second.GetEntrySize())); in UpdateEntryIteratorSize()
385 cache_size_ -= (*it)->second.GetEntrySize(); in UpdateEntryIteratorSize()
386 cache_size_ += entry_size; in UpdateEntryIteratorSize()
420 cache_size_ = merged_cache_size; in MergeInitializingSet()
476 index_file_->WriteToDisk(entries_set_, cache_size_, in WriteToDisk()
Dsimple_index_file.cc151 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()
Dsimple_index_file_unittest.cc46 EXPECT_EQ(0U, index_metadata.cache_size_); in TEST()
63 EXPECT_EQ(new_index_metadata.cache_size_, index_metadata.cache_size_); in TEST()
Dsimple_index_file.h74 uint64 cache_size_; // Total cache storage size in bytes. variable
Dsimple_index.h163 uint64 cache_size_; // Total cache storage size in bytes. variable
Dsimple_index_unittest.cc208 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/webkit/browser/appcache/
Dappcache.cc24 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()
Dappcache.h112 int64 cache_size() const { return cache_size_; } in cache_size()
199 int64 cache_size_; variable
/external/chromium_org/sql/
Dconnection.h106 void set_cache_size(int cache_size) { cache_size_ = cache_size; } in set_cache_size()
557 int cache_size_; variable
Dconnection.cc216 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/
Dsat.h177 int cache_size_; // Size of disk cache. variable
Dsat.cc711 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()
Dworker.cc2543 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()
Dworker.h732 int cache_size_; // Size of disk cache, in bytes. variable