Searched refs:MetricSample (Results 1 – 8 of 8) sorted by relevance
/external/chromium_org/components/metrics/serialization/ |
D | metric_sample.cc | 17 MetricSample::MetricSample(MetricSample::SampleType sample_type, in MetricSample() function in metrics::MetricSample 31 MetricSample::~MetricSample() { in ~MetricSample() 34 bool MetricSample::IsValid() const { in IsValid() 39 std::string MetricSample::ToString() const { in ToString() 77 const int MetricSample::sample() const { in sample() 83 const int MetricSample::min() const { in min() 88 const int MetricSample::max() const { in max() 95 const int MetricSample::bucket_count() const { in bucket_count() 101 scoped_ptr<MetricSample> MetricSample::CrashSample( in CrashSample() 103 return scoped_ptr<MetricSample>( in CrashSample() [all …]
|
D | serialization_utils_unittest.cc | 32 void TestSerialization(MetricSample* sample) { in TestSerialization() 35 scoped_ptr<MetricSample> deserialized = in TestSerialization() 47 TestSerialization(MetricSample::CrashSample("test").get()); in TEST_F() 52 MetricSample::HistogramSample("myhist", 13, 1, 100, 10).get()); in TEST_F() 57 MetricSample::LinearHistogramSample("linearhist", 12, 30).get()); in TEST_F() 61 TestSerialization(MetricSample::SparseHistogramSample("mysparse", 30).get()); in TEST_F() 65 TestSerialization(MetricSample::UserActionSample("myaction").get()); in TEST_F() 69 scoped_ptr<MetricSample> sample1 = in TEST_F() 70 MetricSample::SparseHistogramSample("no space", 10); in TEST_F() 71 scoped_ptr<MetricSample> sample2 = MetricSample::LinearHistogramSample( in TEST_F() [all …]
|
D | metric_sample.h | 19 class MetricSample { 30 ~MetricSample(); 62 static scoped_ptr<MetricSample> CrashSample(const std::string& crash_name); 65 static scoped_ptr<MetricSample> HistogramSample( 72 static scoped_ptr<MetricSample> ParseHistogram(const std::string& serialized); 75 static scoped_ptr<MetricSample> SparseHistogramSample( 79 static scoped_ptr<MetricSample> ParseSparseHistogram( 83 static scoped_ptr<MetricSample> LinearHistogramSample( 88 static scoped_ptr<MetricSample> ParseLinearHistogram( 92 static scoped_ptr<MetricSample> UserActionSample( [all …]
|
D | serialization_utils.cc | 83 scoped_ptr<MetricSample> SerializationUtils::ParseSample( in ParseSample() 86 return scoped_ptr<MetricSample>(); in ParseSample() 95 return scoped_ptr<MetricSample>(); in ParseSample() 101 return MetricSample::CrashSample(value); in ParseSample() 103 return MetricSample::ParseHistogram(value); in ParseSample() 105 return MetricSample::ParseLinearHistogram(value); in ParseSample() 107 return MetricSample::ParseSparseHistogram(value); in ParseSample() 109 return MetricSample::UserActionSample(value); in ParseSample() 113 return scoped_ptr<MetricSample>(); in ParseSample() 118 ScopedVector<MetricSample>* metrics) { in ReadAndTruncateMetricsFromFile() [all …]
|
D | serialization_utils.h | 15 class MetricSample; variable 24 scoped_ptr<MetricSample> ParseSample(const std::string& sample); 28 ScopedVector<MetricSample>* metrics); 40 bool WriteMetricToFile(const MetricSample& sample, const std::string& filename);
|
/external/chromium_org/chrome/browser/chromeos/ |
D | external_metrics.cc | 162 void ExternalMetrics::RecordHistogram(const metrics::MetricSample& sample) { in RecordHistogram() 163 CHECK_EQ(metrics::MetricSample::HISTOGRAM, sample.type()); in RecordHistogram() 180 const metrics::MetricSample& sample) { in RecordLinearHistogram() 181 CHECK_EQ(metrics::MetricSample::LINEAR_HISTOGRAM, sample.type()); in RecordLinearHistogram() 196 const metrics::MetricSample& sample) { in RecordSparseHistogram() 197 CHECK_EQ(metrics::MetricSample::SPARSE_HISTOGRAM, sample.type()); in RecordSparseHistogram() 204 ScopedVector<metrics::MetricSample> samples; in CollectEvents() 208 for (ScopedVector<metrics::MetricSample>::iterator it = samples.begin(); in CollectEvents() 211 const metrics::MetricSample& sample = **it; in CollectEvents() 216 case metrics::MetricSample::CRASH: in CollectEvents() [all …]
|
D | external_metrics.h | 16 class MetricSample; variable 69 void RecordHistogram(const metrics::MetricSample& sample); 72 void RecordSparseHistogram(const metrics::MetricSample& sample); 75 void RecordLinearHistogram(const metrics::MetricSample& sample);
|
D | external_metrics_unittest.cc | 40 scoped_ptr<metrics::MetricSample> hist = in TEST_F() 41 metrics::MetricSample::HistogramSample("foo", 2, 1, 100, 10); in TEST_F() 55 scoped_ptr<metrics::MetricSample> hist = in TEST_F() 56 metrics::MetricSample::HistogramSample("bar", 30, 200, 20, 10); in TEST_F()
|