Searched refs:histogram (Results 1 - 25 of 163) sorted by relevance

1234567

/external/chromium_org/net/socket_stream/
H A Dsocket_stream_metrics_unittest.cc9 #include "base/metrics/histogram.h"
28 HistogramBase* histogram = local
30 if (histogram) {
31 original = histogram->SnapshotSamples();
41 histogram =
43 ASSERT_TRUE(histogram != NULL);
44 EXPECT_EQ(HistogramBase::kUmaTargetedHistogramFlag, histogram->flags());
46 scoped_ptr<HistogramSamples> samples(histogram->SnapshotSamples());
59 HistogramBase* histogram = local
61 if (histogram) {
94 HistogramBase* histogram = local
129 HistogramBase* histogram = local
[all...]
/external/chromium_org/tools/telemetry/telemetry/value/
H A Dhistogram_util.py5 """This is a helper module to get and manipulate histogram data.
7 The histogram data is the same data as is visible from "chrome://histograms".
8 More information can be found at: chromium/src/base/metrics/histogram.h
20 """Allows histogram collection."""
25 """Subtracts a previous histogram from a histogram.
30 # It's ok if the start histogram is empty (we had no data, maybe even no
31 # histogram at all, at the start of the test).
35 histogram = json.loads(histogram_json)
36 if ('pid' in start_histogram and 'pid' in histogram
[all...]
H A Dhistogram_unittest.py9 from telemetry.value import histogram as histogram_module
26 histogram = histogram_module.HistogramValue(
32 histogram.GetBuildbotValue())
34 histogram.GetRepresentativeNumber())
37 histogram.GetBuildbotValue())
40 'unimportant-histogram',
41 histogram.GetBuildbotDataType(value.SUMMARY_RESULT_OUTPUT_CONTEXT))
42 histogram.important = True
44 'histogram',
45 histogram
[all...]
/external/chromium_org/third_party/brotli/src/brotli/enc/
H A Dbit_cost.h40 const Histogram<kCodeLengthCodes>& histogram,
42 return HuffmanTreeBitCost(&histogram.data_[0], &entropy.depth_[0]);
47 int histogram[kCodeLengthCodes] = { 0 }; local
50 // compute histogram of compacted huffman tree
65 histogram[0] += reps;
69 ++histogram[17];
76 ++histogram[value];
81 histogram[value] += reps;
85 ++histogram[16];
94 CreateHuffmanTree(histogram, kCodeLengthCode
39 HuffmanTreeBitCost( const Histogram<kCodeLengthCodes>& histogram, const EntropyCode<kCodeLengthCodes>& entropy) argument
109 PopulationCost(const Histogram<kSize>& histogram) argument
[all...]
H A DMakefile5 OBJS = backward_references.o block_splitter.o encode.o entropy_encode.o histogram.o literal_cost.o prefix.o
H A Dliteral_cost.cc68 int histogram[3][256] = { { 0 } }; local
78 ++histogram[utf8_pos][c];
93 --histogram[utf8_pos2][data[(pos + i - window_half) & mask]];
103 ++histogram[utf8_pos2][data[(pos + i + window_half) & mask]];
110 int histo = histogram[utf8_pos][data[masked_pos]];
135 int histogram[256] = { 0 };
139 // Bootstrap histogram.
141 ++histogram[data[(pos + i) & mask]];
148 --histogram[data[(pos + i - window_half) & mask]];
153 ++histogram[dat
[all...]
H A Dentropy_encode.h22 #include "./histogram.h"
45 // length contains the size of the histogram.
74 void BuildEntropyCode(const Histogram<kSize>& histogram, argument
82 if (histogram.total_count_ == 0) return;
84 if (histogram.data_[i] > 0) {
91 memcpy(counts, &histogram.data_[0], sizeof(counts[0]) * kSize);
95 CreateHuffmanTree(&histogram.data_[0], alphabet_size, tree_limit,
/external/chromium_org/base/metrics/
H A Dhistogram_delta_serialization_unittest.cc9 #include "base/metrics/histogram.h"
24 HistogramBase* histogram = Histogram::FactoryGet( local
26 histogram->Add(1);
27 histogram->Add(10);
28 histogram->Add(100);
29 histogram->Add(1000);
36 // The histogram has kIPCSerializationSourceFlag. So samples will be ignored.
37 scoped_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples());
44 histogram->ClearFlags(HistogramBase::kIPCSerializationSourceFlag);
47 scoped_ptr<HistogramSamples> snapshot2(histogram
[all...]
H A Dhistogram_base_unittest.cc7 #include "base/metrics/histogram.h"
39 HistogramBase* histogram = Histogram::FactoryGet( local
45 ASSERT_TRUE(histogram->SerializeInfo(&pickle));
49 EXPECT_EQ(histogram, deserialized);
56 EXPECT_NE(histogram, deserialized);
65 HistogramBase* histogram = LinearHistogram::FactoryGet( local
70 ASSERT_TRUE(histogram->SerializeInfo(&pickle));
74 EXPECT_EQ(histogram, deserialized);
81 EXPECT_NE(histogram, deserialized);
88 HistogramBase* histogram local
115 HistogramBase* histogram = CustomHistogram::FactoryGet( local
137 HistogramBase* histogram = SparseHistogram::FactoryGet( local
[all...]
H A Dsparse_histogram_unittest.cc48 scoped_ptr<SparseHistogram> histogram(NewSparseHistogram("Sparse"));
49 scoped_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples());
53 histogram->Add(100);
54 scoped_ptr<HistogramSamples> snapshot1(histogram->SnapshotSamples());
58 histogram->Add(100);
59 histogram->Add(101);
60 scoped_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples());
89 // Unlike the macros in histogram.h, SparseHistogram macros can have a
90 // variable as histogram name.
107 scoped_ptr<SparseHistogram> histogram(NewSparseHistogra
[all...]
H A Dhistogram_delta_serialization.cc18 // Create or find existing histogram and add the samples from pickle.
21 HistogramBase* histogram = DeserializeHistogramInfo(iter); local
22 if (!histogram)
25 if (histogram->flags() & HistogramBase::kIPCSerializationSourceFlag) {
26 DVLOG(1) << "Single process mode, histogram observed and not copied: "
27 << histogram->histogram_name();
30 histogram->AddSamplesFromPickle(iter);
85 const HistogramBase& histogram,
90 histogram.SerializeInfo(&pickle);
84 RecordDelta( const HistogramBase& histogram, const HistogramSamples& snapshot) argument
H A Dhistogram_unittest.cc14 #include "base/metrics/histogram.h"
52 HistogramBase* histogram = Histogram::FactoryGet( local
54 EXPECT_TRUE(histogram);
79 HistogramBase* histogram = LinearHistogram::FactoryGet( local
82 scoped_ptr<HistogramSamples> samples = histogram->SnapshotSamples();
100 Histogram* histogram = static_cast<Histogram*>( local
102 EXPECT_TRUE(ranges.Equals(histogram->bucket_ranges()));
141 Histogram* histogram = static_cast<Histogram*>( local
143 EXPECT_TRUE(ranges.Equals(histogram->bucket_ranges()));
179 Histogram* histogram local
228 Histogram* histogram = static_cast<Histogram*>( local
241 Histogram* histogram = static_cast<Histogram*>( local
288 Histogram* histogram = static_cast<Histogram*>( local
307 Histogram* histogram = static_cast<Histogram*>( local
334 Histogram* histogram = static_cast<Histogram*>( local
369 Histogram* histogram = static_cast<Histogram*>( local
444 HistogramBase* histogram = Histogram::FactoryGet( local
475 HistogramBase* histogram = Histogram::FactoryGet( local
[all...]
H A Dstatistics_recorder_unittest.cc9 #include "base/metrics/histogram.h"
48 void DeleteHistogram(HistogramBase* histogram) { argument
49 delete histogram;
66 Histogram* histogram = CreateHistogram("TestHistogram", 1, 1000, 10); local
69 EXPECT_EQ(histogram,
70 StatisticsRecorder::RegisterOrDeleteDuplicate(histogram));
71 // Manually delete histogram that was not registered.
72 DeleteHistogram(histogram);
123 Histogram* histogram = CreateHistogram("TestHistogram", 1, 1000, 10); local
130 EXPECT_EQ(histogram,
179 HistogramBase* histogram = Histogram::FactoryGet( local
221 HistogramBase* histogram = Histogram::FactoryGet( local
[all...]
H A Dhistogram_flattener.h12 #include "base/metrics/histogram.h"
24 virtual void RecordDelta(const HistogramBase& histogram,
27 // Will be called each time a type of Inconsistency is seen on a histogram,
32 // a histogram.
36 // Will be called when the total logged sample count of a histogram
/external/chromium_org/tools/metrics/histograms/
H A Dhistogram_ownership.py17 assert root.tag == 'histogram-configuration'
27 for histogram in histograms.getchildren():
28 if histogram.tag != 'histogram':
31 name = histogram.attrib['name']
34 for node in histogram.getchildren():
H A Dfind_unmapped_histograms.py37 UMA_HISTOGRAM # Match the shared prefix for standard UMA histogram macros
96 def logNonLiteralHistogram(filename, histogram):
97 """Logs a statement warning about a non-literal histogram name found in the
103 filename: The filename for the file containing the histogram, e.g.
105 histogram: The expression that evaluates to the name of the histogram, e.g.
111 # Ignore histogram macros, which typically contain backslashes so that they
113 if '\\' in histogram:
116 # Ignore histogram names that have been pulled out into C++ constants.
117 if CONSTANT_REGEX.match(histogram)
[all...]
/external/chromium_org/tools/telemetry/telemetry/core/
H A Dbitmap_unittest.py181 histogram = bmp.ColorHistogram()
183 self.assertEquals(sum(histogram[i]), bmp.width * bmp.height)
184 self.assertEquals(histogram.r[1], 0)
185 self.assertEquals(histogram.r[5], 2)
186 self.assertEquals(histogram.r[8], 2)
187 self.assertEquals(histogram.g[2], 0)
188 self.assertEquals(histogram.g[4], 2)
189 self.assertEquals(histogram.g[7], 2)
190 self.assertEquals(histogram.b[3], 0)
191 self.assertEquals(histogram
[all...]
/external/chromium_org/base/test/
H A Dhistogram_tester.cc7 #include "base/metrics/histogram.h"
18 // Record any histogram data that exists when the object is created so it can
36 base::HistogramBase* histogram = local
38 EXPECT_NE(static_cast<base::HistogramBase*>(NULL), histogram)
41 if (histogram) {
42 scoped_ptr<base::HistogramSamples> samples(histogram->SnapshotSamples());
52 base::HistogramBase* histogram = local
54 EXPECT_NE(static_cast<base::HistogramBase*>(NULL), histogram)
57 if (histogram) {
58 scoped_ptr<base::HistogramSamples> samples(histogram
65 base::HistogramBase* histogram = local
78 HistogramBase* histogram = StatisticsRecorder::FindHistogram(histogram_name); local
[all...]
/external/chromium_org/chrome/browser/chromeos/net/
H A Dnetwork_portal_detector_test_utils.cc17 EnumHistogramChecker::EnumHistogramChecker(const std::string& histogram, argument
20 : histogram_(histogram), expect_(count), base_(base) {}
35 base::HistogramBase* histogram = local
37 if (!histogram) {
45 scoped_ptr<base::HistogramSamples> samples = histogram->SnapshotSamples();
H A Dnetwork_portal_detector_test_utils.h19 // Checks enum values in a histogram.
22 EnumHistogramChecker(const std::string& histogram, int count,
30 // Actually accesses histogram and checks values for all keys.
34 // Name of a histogram.
/external/chromium_org/content/browser/
H A Dhistogram_message_filter.cc8 #include "base/metrics/histogram.h"
51 LOG(ERROR) << "Attempt at reading browser histogram without specifying "
55 base::HistogramBase* histogram = local
57 if (!histogram) {
60 histogram->WriteJSON(histogram_json);
/external/chromium_org/chrome/browser/importer/
H A Dimporter_uma.cc27 // used to bucket a UMA histogram, and removing values breaks that.
59 // creates and owns the histogram.
60 base::HistogramBase* histogram = local
67 histogram->Add(metrics_type);
/external/e2fsprogs/misc/
H A De2freefrag.h19 struct free_chunk_histogram histogram; /* histogram of all chunk sizes*/ member in struct:chunk_info
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/timeline/
H A DTimelineMemoryOverview.js89 var histogram = new Array(width);
101 histogram[x] = Math.max(histogram[x] || 0, y);
114 for (var x = 0; x < histogram.length; x++) {
115 if (typeof histogram[x] === "undefined")
119 y = histogram[x];
122 var nextY = histogram[x];
/external/chromium_org/third_party/libwebp/utils/
H A Dhuffman_encode.h53 void VP8LCreateHuffmanTree(uint32_t* const histogram, int tree_depth_limit,

Completed in 2771 milliseconds

1234567