Searched defs:histogram (Results 1 - 25 of 39) sorted by relevance

12

/external/libchrome/base/metrics/
H A Dhistogram_delta_serialization_unittest.cc9 #include "base/metrics/histogram.h"
25 HistogramBase* histogram = Histogram::FactoryGet( local
27 histogram->Add(1);
28 histogram->Add(10);
29 histogram->Add(100);
30 histogram->Add(1000);
37 // The histogram has kIPCSerializationSourceFlag. So samples will be ignored.
38 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples());
45 histogram->ClearFlags(HistogramBase::kIPCSerializationSourceFlag);
48 std::unique_ptr<HistogramSamples> snapshot2(histogram
[all...]
H A Dhistogram_base_unittest.cc7 #include "base/metrics/histogram.h"
47 HistogramBase* histogram = Histogram::FactoryGet( local
53 ASSERT_TRUE(histogram->SerializeInfo(&pickle));
57 EXPECT_EQ(histogram, deserialized);
64 EXPECT_NE(histogram, deserialized);
73 HistogramBase* histogram = LinearHistogram::FactoryGet( local
78 ASSERT_TRUE(histogram->SerializeInfo(&pickle));
82 EXPECT_EQ(histogram, deserialized);
89 EXPECT_NE(histogram, deserialized);
96 HistogramBase* histogram local
123 HistogramBase* histogram = CustomHistogram::FactoryGet( local
145 HistogramBase* histogram = SparseHistogram::FactoryGet( local
[all...]
H A Dhistogram_delta_serialization.cc19 // Create or find existing histogram and add the samples from pickle.
22 HistogramBase* histogram = DeserializeHistogramInfo(iter); local
23 if (!histogram)
26 if (histogram->flags() & HistogramBase::kIPCSerializationSourceFlag) {
27 DVLOG(1) << "Single process mode, histogram observed and not copied: "
28 << histogram->histogram_name();
31 histogram->AddSamplesFromPickle(iter);
90 const HistogramBase& histogram,
96 histogram.SerializeInfo(&pickle);
89 RecordDelta( const HistogramBase& histogram, const HistogramSamples& snapshot) argument
H A Dhistogram_snapshot_manager.cc26 void HistogramSnapshotManager::PrepareDelta(HistogramBase* histogram) { argument
27 PrepareSamples(histogram, histogram->SnapshotDelta());
31 const HistogramBase* histogram) {
32 PrepareSamples(histogram, histogram->SnapshotFinalDelta());
36 const HistogramBase* histogram,
40 // Get information known about this histogram. If it did not previously
42 SampleInfo* sample_info = &known_histograms_[histogram->name_hash()];
47 uint32_t corruption = histogram
30 PrepareFinalDelta( const HistogramBase* histogram) argument
35 PrepareSamples( const HistogramBase* histogram, std::unique_ptr<HistogramSamples> samples) argument
[all...]
H A Dpersistent_histogram_allocator_unittest.cc60 HistogramBase* histogram = Histogram::FactoryGet( local
62 EXPECT_TRUE(histogram);
63 histogram->CheckName("TestHistogram");
162 // Create a local StatisticsRecorder in which the newly created histogram
168 HistogramBase* histogram = LinearHistogram::FactoryGet( local
170 EXPECT_TRUE(histogram);
172 histogram->Add(3);
173 histogram->Add(1);
174 histogram->Add(4);
175 histogram
[all...]
H A Dhistogram_base.cc14 #include "base/metrics/histogram.h"
140 // Calling FactoryGet() here rather than using a histogram-macro works
142 // histogram when not expected due to a bad interaction between
192 void HistogramBase::ReportHistogramActivity(const HistogramBase& histogram, argument
197 const int32_t flags = histogram.flags_;
202 switch (histogram.GetHistogramType()) {
H A Dhistogram_unittest.cc5 #include "base/metrics/histogram.h"
31 // for histogram allocation. False will allocate histograms from the process
67 // By getting the results-histogram before any persistent allocator
68 // is attached, that histogram is guaranteed not to be stored in
99 HistogramBase* histogram = Histogram::FactoryGet( local
101 EXPECT_TRUE(histogram);
142 HistogramBase* histogram = LinearHistogram::FactoryGet( local
145 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples();
152 HistogramBase* histogram = local
155 histogram
181 HistogramBase* histogram = local
218 Histogram* histogram = static_cast<Histogram*>( local
259 Histogram* histogram = static_cast<Histogram*>( local
297 Histogram* histogram = static_cast<Histogram*>( local
346 Histogram* histogram = static_cast<Histogram*>( local
358 Histogram* histogram = static_cast<Histogram*>( local
381 Histogram* histogram = static_cast<Histogram*>( local
406 Histogram* histogram = static_cast<Histogram*>( local
453 Histogram* histogram = static_cast<Histogram*>( local
506 Histogram* histogram = static_cast<Histogram*>( local
541 Histogram* histogram = static_cast<Histogram*>( local
617 HistogramBase* histogram = Histogram::FactoryGet( local
[all...]
H A Dsparse_histogram.cc27 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); local
28 if (!histogram) {
29 // Try to create the histogram using a "persistent" allocator. As of
32 // allocating from it fails, code below will allocate the histogram from
52 // Register this histogram with the StatisticsRecorder. Keep a copy of
53 // the pointer value to tell later whether the locally created histogram
57 histogram = StatisticsRecorder::RegisterOrDeleteDuplicate(
63 histogram == tentative_histogram_ptr);
66 ReportHistogramActivity(*histogram, HISTOGRAM_CREATED);
68 ReportHistogramActivity(*histogram, HISTOGRAM_LOOKU
[all...]
H A Dstatistics_recorder.cc14 #include "base/metrics/histogram.h"
24 // Initialize histogram statistics gathering system.
41 // The starting location could point to a persistent histogram when such
45 // This operator will continue to skip until a non-persistent histogram
110 HistogramBase* histogram) {
117 ANNOTATE_LEAKING_OBJECT_PTR(histogram); // see crbug.com/79322
118 return histogram;
126 histogram_to_return = histogram;
128 const std::string& name = histogram->histogram_name();
131 // The StringKey references the name within |histogram| rathe
109 RegisterOrDeleteDuplicate( HistogramBase* histogram) argument
[all...]
H A Dstatistics_recorder_unittest.cc91 void DeleteHistogram(HistogramBase* histogram) { argument
92 delete histogram;
138 Histogram* histogram = CreateHistogram("TestHistogram", 1, 1000, 10); local
141 EXPECT_EQ(histogram,
142 StatisticsRecorder::RegisterOrDeleteDuplicate(histogram));
143 // Manually delete histogram that was not registered.
144 DeleteHistogram(histogram);
195 Histogram* histogram = CreateHistogram("TestHistogram", 1, 1000, 10); local
202 EXPECT_EQ(histogram,
203 StatisticsRecorder::RegisterOrDeleteDuplicate(histogram));
274 HistogramBase* histogram = Histogram::FactoryGet( local
323 HistogramBase* histogram = Histogram::FactoryGet( local
490 HistogramBase* histogram = Histogram::FactoryGet("TestHistogram", 1, 1000, 10, local
517 HistogramBase* histogram = Histogram::FactoryGet("TestHistogram", 1, 1000, 10, local
541 HistogramBase* histogram = Histogram::FactoryGet( local
620 HistogramBase* histogram = Histogram::FactoryGet("TestHistogram", 1, 1000, 10, local
[all...]
H A Dhistogram.cc10 #include "base/metrics/histogram.h"
66 // We use the arguments to find or create the local version of the histogram
73 bool ValidateRangeChecksum(const HistogramBase& histogram, argument
76 static_cast<const Histogram&>(histogram);
99 // Create histogram based on construction parameters. Caller takes
117 // Create a BucketRanges structure appropriate for this histogram.
130 // Perform any required datafill on the just-created histogram. If
133 virtual void FillHistogram(HistogramBase* /*histogram*/) {}
150 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name_); local
151 if (!histogram) {
576 HistogramBase* histogram = Histogram::FactoryGet( local
763 LinearHistogram* histogram = static_cast<LinearHistogram*>(base_histogram); variable
922 HistogramBase* histogram = LinearHistogram::FactoryGet( local
1007 HistogramBase* histogram = BooleanHistogram::FactoryGet( local
1168 HistogramBase* histogram = CustomHistogram::FactoryGet( local
[all...]
H A Dpersistent_histogram_allocator.cc16 #include "base/metrics/histogram.h"
29 // Name of histogram for storing results of local operations.
74 // Calculate the number of bytes required to store all of a histogram's
162 // The sample-record could be for any sparse histogram. Add the reference
238 // Space for the histogram name will be added during the actual allocation
268 // Unfortunately, the histogram "pickle" methods cannot be used as part of
303 // Create the metadata necessary for a persistent sparse histogram. This
361 // Create the histogram using resources in persistent memory. This ends up
365 // correct before commiting the new histogram to persistent space.
366 std::unique_ptr<HistogramBase> histogram local
407 MergeHistogramDeltaToStatisticsRecorder( HistogramBase* histogram) argument
426 MergeHistogramFinalDeltaToStatisticsRecorder( const HistogramBase* histogram) argument
512 std::unique_ptr<HistogramBase> histogram = local
579 std::unique_ptr<HistogramBase> histogram; local
627 GetOrCreateStatisticsRecorderHistogram( const HistogramBase* histogram) argument
858 std::unique_ptr<HistogramBase> histogram = local
[all...]
/external/ImageMagick/Magick++/tests/
H A DcolorHistogram.cpp45 // Create histogram vector
47 std::map<Color,size_t> histogram; local
49 std::vector<std::pair<Color,size_t> > histogram; local
52 colorHistogram( &histogram, image );
54 // Print out histogram
64 << histogram.size() << " entries:" << endl;
67 std::map<Color,size_t>::const_iterator p=histogram.begin();
69 std::vector<std::pair<Color,size_t> >::const_iterator p=histogram.begin();
71 while (p != histogram.end())
/external/e2fsprogs/misc/
H A De2freefrag.h19 struct free_chunk_histogram histogram; /* histogram of all chunk sizes*/ member in struct:chunk_info
/external/ImageMagick/coders/
H A Dhistogram.c54 #include "MagickCore/histogram.h"
154 % The image shows a histogram of the color (or gray) values in the image. The
198 *histogram;
224 Allocate histogram image.
244 Allocate histogram count arrays.
248 histogram=(PixelInfo *) AcquireQuantumMemory(length,sizeof(*histogram));
249 if (histogram == (PixelInfo *) NULL)
255 Initialize histogram count arrays.
257 (void) ResetMagickMemory(histogram,
193 *histogram; local
[all...]
/external/chromium-trace/catapult/telemetry/telemetry/value/
H A Dsummary_unittest.py13 from telemetry.value import histogram namespace
362 v0 = histogram.HistogramValue(
370 v1 = histogram.HistogramValue(
/external/webrtc/webrtc/modules/audio_processing/utility/
H A Ddelay_estimator.h54 float* histogram; member in struct:__anon24669
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
H A DChecker.java28 private int[] histogram; field in class:Checker
53 histogram = new int[100];
78 histogram[i] = 0;
173 histogram[ph] += 1;
177 System.out.println(ph + "\t" + histogram[ph]);
/external/chromium-trace/catapult/telemetry/telemetry/internal/results/
H A Dpage_test_results_unittest.py17 from telemetry.value import histogram namespace
199 lambda: results.AddValue(histogram.HistogramValue(
/external/libmojo/base/android/
H A Drecord_histogram.cc16 #include "base/metrics/histogram.h"
34 std::string HistogramConstructionParamsToString(HistogramBase* histogram) { argument
35 std::string params_str = histogram->histogram_name();
36 switch (histogram->GetHistogramType()) {
41 Histogram* hist = static_cast<Histogram*>(histogram);
57 HistogramBase* histogram) {
58 DCHECK(histogram->HasConstructionArguments(expected_min, expected_max,
62 << HistogramConstructionParamsToString(histogram);
69 HistogramBase* histogram = HistogramFromKey(j_histogram_key); local
70 if (histogram)
52 CheckHistogramArgs(JNIEnv* env, jstring j_histogram_name, int32_t expected_min, int32_t expected_max, int32_t expected_bucket_count, HistogramBase* histogram) argument
84 HistogramBase* histogram = HistogramFromKey(j_histogram_key); local
109 HistogramBase* histogram = HistogramFromKey(j_histogram_key); local
133 HistogramBase* histogram = HistogramFromKey(j_histogram_key); local
151 HistogramBase* histogram = HistogramFromKey(j_histogram_key); local
168 HistogramBase* histogram = HistogramFromKey(j_histogram_key); local
208 HistogramBase* histogram = g_histograms.Get().BooleanHistogram( local
222 HistogramBase* histogram = g_histograms.Get().EnumeratedHistogram( local
238 HistogramBase* histogram = g_histograms.Get().CustomCountHistogram( local
254 HistogramBase* histogram = g_histograms.Get().LinearCountHistogram( local
266 HistogramBase* histogram = g_histograms.Get().SparseHistogram( local
281 HistogramBase* histogram = g_histograms.Get().CustomTimesHistogram( local
301 HistogramBase* histogram = StatisticsRecorder::FindHistogram( local
[all...]
/external/libvorbis/vq/
H A Dmetrics.c44 float **histogram=NULL; variable
63 histogram=_ogg_calloc(books,sizeof(float *));
75 histogram[i]=_ogg_calloc(b->entries,sizeof(float));
169 sqrt((histogram_errorsq[book]+i*dim)[k]/histogram[book][i]));
185 (histogram_error[book]+i*dim)[k]/histogram[book][i]);
241 histogram[book][entry]++;
253 if(histogram[book][entry]==0 || histogram_hi[book][entry*dim+j]<error)
255 if(histogram[book][entry]==0 || histogram_lo[book][entry*dim+j]>error)
/external/webp/src/utils/
H A Dhuffman_encode_utils.c165 static void GenerateOptimalTree(const uint32_t* const histogram, argument
175 if (histogram[i] != 0) {
194 // So, we try by faking histogram entries to be at least 'count_min'.
198 if (histogram[j] != 0) {
200 (histogram[j] < count_min) ? count_min : histogram[j];
406 void VP8LCreateHuffmanTree(uint32_t* const histogram, int tree_depth_limit, argument
412 OptimizeHuffmanForRle(num_symbols, buf_rle, histogram);
413 GenerateOptimalTree(histogram, num_symbols, huff_tree, tree_depth_limit,
/external/ImageMagick/MagickCore/
H A Dhistogram.c50 #include "MagickCore/histogram.h"
336 % o histogram: the image histogram.
340 PixelInfo **histogram)
354 DefineImageHistogram(image,node_info->child[i],histogram);
363 **histogram=(*p);
364 (*histogram)++;
527 % o file: Write a histogram of the color distribution to this file handle.
536 *histogram;
542 histogram
333 DefineImageHistogram(const Image *image,NodeInfo *node_info, PixelInfo **histogram) argument
526 *histogram; local
1008 *histogram; local
[all...]
H A Dpaint.c655 static size_t **DestroyHistogramThreadSet(size_t **histogram)
660 assert(histogram != (size_t **) NULL);
662 if (histogram[i] != (size_t *) NULL)
663 histogram[i]=(size_t *) RelinquishMagickMemory(histogram[i]);
664 histogram=(size_t **) RelinquishMagickMemory(histogram);
665 return(histogram);
674 **histogram,
678 histogram
651 DestroyHistogramThreadSet(size_t **histogram) argument
670 **histogram, local
770 *histogram; local
[all...]
H A Dsegment.c48 % o Build a histogram, one for each color component of the image.
50 % o For each histogram, successively apply the scale-space filter and
53 % determine which peaks and valleys in the histogram are most
56 % o The fingerprint defines intervals on the axis of the histogram.
64 % assigned to one of the classes discovered in the histogram analysis
176 histogram[256];
237 % represent the peaks and valleys of the histogram for each color
817 % represent the peaks and valleys of the histogram for each color
863 % DerivativeHistogram() determines the derivative of the histogram using
868 % DerivativeHistogram(const double *histogram,
173 histogram[256]; member in struct:_ZeroCrossing
872 DerivativeHistogram(const double *histogram, double *derivative) argument
964 *histogram[MaxDimension], local
1221 InitializeHistogram(const Image *image,ssize_t **histogram, ExceptionInfo *exception) argument
1490 OptimalTau(const ssize_t *histogram,const double max_tau, const double min_tau,const double delta_tau,const double smooth_threshold, short *extrema) argument
1698 ScaleSpace(const ssize_t *histogram,const double tau, double *scale_histogram) argument
1795 *histogram[MaxDimension]; local
[all...]

Completed in 525 milliseconds

12