/external/llvm/lib/Support/ |
Statistic.cpp | 1 //===-- Statistic.cpp - Easy way to expose stats information --------------===// 12 // printed at the end of a run, when the -stats command line option is enabled 39 /// -stats - Command line option to cause transformations to emit stats about 44 "stats", 53 std::vector<const Statistic*> Stats; 60 Stats.push_back(S); 71 // If stats are enabled, inform StatInfo that this statistic should be 115 StatisticInfo &Stats = *StatInfo; 119 for (size_t i = 0, e = Stats.Stats.size(); i != e; ++i) [all...] |
/external/chromium_org/net/disk_cache/ |
stats_histogram.h | 21 class Stats; 23 // This class provides support for sending the disk cache size stats as a UMA 36 const Stats* stats); 39 static void InitializeBucketRanges(const Stats* stats, 42 const Stats* stats); 44 // Disables this histogram when the underlying Stats go away. 52 const Stats* stats_ [all...] |
stats.cc | 5 #include "net/disk_cache/stats.h" 20 int data_sizes[disk_cache::Stats::kDataSizesLength]; 21 int64 counters[disk_cache::Stats::MAX_COUNTER]; 41 // WARNING: Add new stats only at the end, or change LoadStats(). 66 COMPILE_ASSERT(arraysize(kCounterNames) == disk_cache::Stats::MAX_COUNTER, 73 bool VerifyStats(OnDiskStats* stats) { 74 if (stats->signature != kDiskSignature) 79 if (static_cast<unsigned int>(stats->size) > sizeof(*stats)) { 80 memset(stats, 0, sizeof(*stats)) 102 OnDiskStats* stats = &local_stats; local 217 OnDiskStats* stats = reinterpret_cast<OnDiskStats*>(data); local [all...] |
stats.h | 24 class Stats { 54 Stats(); 55 ~Stats(); 63 // Returns the number of bytes needed to store the stats on disk. 82 // Writes the stats into |data|, to be stored at the given cache address. 100 DISALLOW_COPY_AND_ASSIGN(Stats);
|
stats_histogram.cc | 13 #include "net/disk_cache/stats.h" 27 const Stats* stats) 29 stats_(stats) {} 34 void StatsHistogram::InitializeBucketRanges(const Stats* stats, 37 ranges->set_range(i, stats->GetBucketRange(i)); 43 const Stats* stats) { 45 Sample maximum = disk_cache::Stats::kDataSizesLength - 1 [all...] |
backend_impl.cc | 356 stats_.OnEvent(Stats::DOOM_CACHE); 413 stats_.OnEvent(Stats::DOOM_RECENT); 479 int64 total_hours = stats_.GetCounter(Stats::TIMER) / 120; 480 int64 no_use_hours = stats_.GetCounter(Stats::LAST_REPORT_TIMER) / 120; 488 stats_.OnEvent(Stats::OPEN_MISS); 501 stats_.OnEvent(Stats::OPEN_HIT); 551 stats_.OnEvent(Stats::CREATE_ERROR); 559 stats_.OnEvent(Stats::CREATE_ERROR); 571 stats_.OnEvent(Stats::CREATE_ERROR); 597 stats_.OnEvent(Stats::CREATE_HIT) 1823 StatsItems stats; local [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowStatFs.java | 15 private static final Stats DEFAULT_STATS = new Stats(0, 0, 0); 16 private static Map<String, Stats> stats = new HashMap<String, Stats>(); field in class:ShadowStatFs 17 private Stats stat; 45 stat = stats.get(path); 56 stats.put(path, new Stats(blockCount, freeBlocks, availableBlocks)); 60 stats.clear() [all...] |
/external/chromium/net/disk_cache/ |
stats.cc | 5 #include "net/disk_cache/stats.h" 20 int data_sizes[disk_cache::Stats::kDataSizesLength]; 21 int64 counters[disk_cache::Stats::MAX_COUNTER]; 41 // WARNING: Add new stats only at the end, or change LoadStats(). 65 COMPILE_ASSERT(arraysize(kCounterNames) == disk_cache::Stats::MAX_COUNTER, 72 bool LoadStats(BackendImpl* backend, Addr address, OnDiskStats* stats) { 79 memset(stats, 0, sizeof(*stats)); 80 if (!file->Read(stats, sizeof(*stats), offset) 126 OnDiskStats stats; local [all...] |
stats_histogram.h | 15 class Stats; 17 // This class provides support for sending the disk cache size stats as a UMA 40 // We'll be reporting data from the given set of cache stats. 41 bool Init(const Stats* stats); 51 static const Stats* stats_;
|
stats.h | 23 class Stats { 52 Stats(); 53 ~Stats(); 73 // Saves the stats to disk. 91 DISALLOW_COPY_AND_ASSIGN(Stats);
|
stats_histogram.cc | 8 #include "net/disk_cache/stats.h" 16 const Stats* StatsHistogram::stats_ = NULL; 29 Sample maximum = disk_cache::Stats::kDataSizesLength - 1; 30 size_t bucket_count = disk_cache::Stats::kDataSizesLength; 55 bool StatsHistogram::Init(const Stats* stats) { 56 DCHECK(stats); 62 stats_ = stats; 72 return disk_cache::Stats::kDataSizesLength;
|
backend_impl.cc | 508 if (!stats_.Init(this, &data_->header.stats)) 575 stats_.OnEvent(Stats::DOOM_CACHE); 632 stats_.OnEvent(Stats::DOOM_RECENT); 677 stats_.OnEvent(Stats::OPEN_MISS); 684 stats_.OnEvent(Stats::OPEN_MISS); 692 stats_.OnEvent(Stats::OPEN_HIT); 742 stats_.OnEvent(Stats::CREATE_ERROR); 750 stats_.OnEvent(Stats::CREATE_ERROR); 762 stats_.OnEvent(Stats::CREATE_ERROR); 788 stats_.OnEvent(Stats::CREATE_HIT) 1887 StatsItems stats; local [all...] |
/frameworks/base/core/jni/ |
android_net_TrafficStats.cpp | 34 static const char* QTAGUID_UID_STATS = "/proc/net/xt_qtaguid/stats"; 48 struct Stats { 57 static uint64_t getStatsType(struct Stats* stats, StatsType type) { 60 return stats->rxBytes; 62 return stats->rxPackets; 64 return stats->txBytes; 66 return stats->txPackets; 68 return stats->tcpRxPackets; 70 return stats->tcpTxPackets 151 struct Stats stats; local 166 struct Stats stats; local 176 struct Stats stats; local [all...] |
/external/chromium_org/chrome/browser/chromeos/ |
boot_times_loader.h | 54 // Existing stats files will not be overwritten. 57 // Saves away the stats at main, so the can be recorded later. At main() time 62 // file thread. Existing stats files will not be overwritten. 116 struct Stats { 123 const std::string& name, const Stats& stats); 124 static Stats GetCurrentStats(); 133 // Used to hold the stats at main(). 134 Stats chrome_main_stats_;
|
/external/llvm/tools/llvm-bcanalyzer/ |
llvm-bcanalyzer.cpp | 550 // Emit per-block stats. 559 const PerBlockIDStats &Stats = I->second; 560 outs() << " Num Instances: " << Stats.NumInstances << "\n"; 562 PrintSize(Stats.NumBits); 564 double pct = (Stats.NumBits * 100.0) / BufferSizeBits; 566 if (Stats.NumInstances > 1) { 568 PrintSize(Stats.NumBits/(double)Stats.NumInstances); 570 outs() << " Tot/Avg SubBlocks: " << Stats.NumSubBlocks << "/" 571 << Stats.NumSubBlocks/(double)Stats.NumInstances << "\n" [all...] |
/external/chromium/chrome/browser/chromeos/ |
boot_times_loader.h | 87 // Existing stats files will not be overwritten. 90 // Saves away the stats at main, so the can be recorded later. At main() time 95 // file thread. Existing stats files will not be overwritten. 146 struct Stats { 153 const std::string& name, const Stats& stats); 154 static Stats GetCurrentStats(); 160 // Used to hold the stats at main(). 161 Stats chrome_main_stats_;
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
heap-profile-table.h | 60 // Profile stats. 61 struct Stats { 68 bool Equivalent(const Stats& x) const { 86 struct AllocContextInfo : public Stats { 143 const Stats& total() const { return total_; } 204 // Hash table bucket to hold (de)allocation stats 206 struct Bucket : public Stats { 253 Stats* profile_stats; // stats to update (may be NULL) 255 DumpArgs(RawFD a, Stats* d [all...] |
page_heap.h | 144 struct Stats { 145 Stats() : system_bytes(0), free_bytes(0), unmapped_bytes(0) {} 150 inline Stats stats() const { return stats_; } function in class:tcmalloc::PageHeap 160 // Stats for free large spans (i.e., spans with more than kMaxPages pages). 236 Stats stats_; 263 // appropriate free list, and adjust stats. 266 // Prepends span to appropriate free list, and adjusts stats. 269 // Removes span from its free list, and adjust stats.
|
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
heap-profile-table.h | 41 #include "heap-profile-stats.h" 65 // Profile stats. 66 typedef HeapProfileStats Stats; 89 struct AllocContextInfo : public Stats { 153 const Stats& total() const { return total_; } 235 // Hash table bucket to hold (de)allocation stats 299 DumpArgs(RawFD fd_arg, Stats* profile_stats_arg) 305 Stats* profile_stats; // stats to update (may be NULL) 369 Stats* profile_stats) [all...] |
page_heap.h | 152 struct Stats { 153 Stats() : system_bytes(0), free_bytes(0), unmapped_bytes(0) {} 160 inline Stats stats() const { return stats_; } function in class:tcmalloc::PageHeap 170 // Stats for free large spans (i.e., spans with more than kMaxPages pages). 248 Stats stats_; 274 // appropriate free list, and adjust stats. 283 // Prepends span to appropriate free list, and adjusts stats. 286 // Removes span from its free list, and adjust stats.
|
/external/chromium_org/net/disk_cache/v3/ |
backend_impl_v3.cc | 220 stats_.OnEvent(Stats::DOOM_ENTRY); 325 int64 last_report = stats_.GetCounter(Stats::LAST_REPORT); 328 stats_.SetCounter(Stats::LAST_REPORT, Time::Now().ToInternalValue()); 343 int64 use_time = stats_.GetCounter(Stats::TIMER); 374 void BackendImpl::OnEvent(Stats::Counters an_event) { 391 stats_.OnEvent(Stats::TIMER); 392 int64 time = stats_.GetCounter(Stats::TIMER); 393 int64 current = stats_.GetCounter(Stats::OPEN_ENTRIES); 402 stats_.SetCounter(Stats::OPEN_ENTRIES, current); 403 stats_.SetCounter(Stats::MAX_ENTRIES, max_refs_) 1379 StatsItems stats; local [all...] |
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
page_heap_test.cc | 16 tcmalloc::PageHeap::Stats stats = ph->stats(); local 17 EXPECT_EQ(system_pages, stats.system_bytes >> kPageShift); 18 EXPECT_EQ(free_pages, stats.free_bytes >> kPageShift); 19 EXPECT_EQ(unmapped_pages, stats.unmapped_bytes >> kPageShift);
|
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
page_heap_test.cc | 16 tcmalloc::PageHeap::Stats stats = ph->stats(); local 17 EXPECT_EQ(system_pages, stats.system_bytes >> kPageShift); 18 EXPECT_EQ(free_pages, stats.free_bytes >> kPageShift); 19 EXPECT_EQ(unmapped_pages, stats.unmapped_bytes >> kPageShift);
|
/frameworks/base/core/java/com/android/internal/os/ |
ProcessCpuTracker.java | 154 private final ArrayList<Stats> mProcStats = new ArrayList<Stats>(); 155 private final ArrayList<Stats> mWorkingProcs = new ArrayList<Stats>(); 177 public static class Stats { 183 final ArrayList<Stats> threadStats; 184 final ArrayList<Stats> workingThreads; 216 Stats(int _pid, int parentPid, boolean includeThreads) { 224 threadStats = new ArrayList<Stats>(); 225 workingThreads = new ArrayList<Stats>(); [all...] |
/external/lzma/C/ |
Ppmd7.h | 36 CPpmd_State_Ref Stats;
76 #define Ppmd7_GetStats(p, ctx) ((ctx)->Stats)
80 #define Ppmd7_GetStats(p, ctx) ((CPpmd_State *)Ppmd7_GetPtr((p), ((ctx)->Stats)))
|