Commit Graph

19 Commits

Author SHA1 Message Date
Dhi Aurrahman
edb0548f17 Bug 1432362 - Add test cases for AccumulateTimeDelta r=chutten 2018-03-05 23:57:07 +07:00
Cosmin Sabou
1918c505bc Backed out 2 changesets (bug 1432362) for build bustages at tests/gtest/TestHistograms.cp on a CLOSED TREE
Backed out changeset e372427420a8 (bug 1432362)
Backed out changeset aed9a827a1b9 (bug 1432362)
2018-03-06 00:33:22 +02:00
Dhi Aurrahman
54d95d9797 Bug 1432362 - Add test cases for AccumulateTimeDelta. r=chutten 2018-03-05 23:57:07 +07:00
Dhi Aurrahman
dd66a75756 Bug 1432362 - Add test cases for AccumulateTimeDelta. r=chutten 2018-03-05 23:57:07 +07:00
Dhi Aurrahman
027062794b Bug 1427766 - Add a c++ test for GetHistogramName r=chutten 2018-02-27 05:29:26 +07:00
Chris H-C
2d3474f12f bug 1438335 - Record when we have to clamp large Telemetry accumulations. r=Dexter,francois
We need to clamp accumulations to fit in our data representation (int). This
patch records the number of times, and for which probes, we had to do so.

MozReview-Commit-ID: GSs3oFvLKlL
2018-02-15 16:13:36 -05:00
Chris H-C
402ed83f50 bug 1438335 - Test edge-of-representation accumulations to Histograms. r=Dexter
MozReview-Commit-ID: 4FflK2q7Gea
2018-02-15 13:47:55 -05:00
Aditya Bharti
bbba5112ee Bug 1433998 - Allow C++ to accumulate multiple samples into a keyed categorical histogram. r=chutten
Extended the Telemetry::Accumulate() API to accept a string key and a nsTArray of Telemetry::LABELS_*
enums. The typesafety of the class templates ensures there are no label mismatches within the array.

Since there is no singular version for accumulating a single string label into a keyed categorical
histogram, support for the plural version with multiple string labels has not been included here.
2018-01-30 04:30:36 +05:30
Aditya Bharti
4b0c63ce5b Bug 1428888 - Allow C++ to accumulate multiple samples into a categorical histogram in one call r=chutten
Telemetry::Accumulate now supports two new signatures: Accumulate(HistogramId, nsTArray stringLabels) and
Accumulate(nsTArray enumValues). In the stringLabels case, if the array contains an invalid label, then no
samples are accumulated at all. In the enumValues array case, the class template ensures that we do not have
a mismatch of labels in the array, since the enumValues class is tied to the id of the histogram we want to
accumulate to.
2018-01-28 16:53:40 +05:30
Aditya Bharti
bfc368ad56 bug 1428885 - Allow C++ to accumulate multiple samples into a keyed histogram in one call r=chutten
Extended the Telemetry::Accumulate API to take a Histogram ID, string key, and a nsTArray<uint32_t> of samples.
Test cases check for linear, count and histograms with a set of allowed keys. Made changes to fix try failures.
2018-01-12 03:26:04 +05:30
Aditya Bharti
4cfa0ad19f bug 1364043 - Allow C++ to accumulate multiple samples into histograms with one call. r=chutten
Added another Telemetry::Accumulate function that takes a histogram id and an array of samples as arguments.
As of this patch, adding multiple samples to keyed and categorical histograms is not supported.
2018-01-09 02:16:30 +05:30
Fernando
71a2294f53 Bug 1393041 - Refactor and share the telemetry c++ utility functions in gtests. r=dexter 2017-11-14 12:07:00 +01:00
David Krauser
4a642784d7 Bug 1351274 - Add C++ test coverage for the Categorical Histogram. r=dexter 2017-10-02 19:04:00 +02:00
Chris H-C
eabcba7afb bug 1376600 - Remove registered(Keyed)Histograms r=Dexter
With the removal of the old addonHistograms, all histograms are now registered.
So removing registered(Keyed)Histograms should be straightforward?

Unfortunately not, as this was how we filtered data based on dataset
(opt-in/opt-out), so a little more fiddling was needed to get C++ to only
serialize dataset-appropriate data (instead of post-facto filtering it in JS).

MozReview-Commit-ID: HDplhmzmzJl
2017-08-22 09:42:09 -04:00
Alessio Placitelli
5329b408e3 Bug 1343855 - Part 2 - Add support for key whitelists in keyed histograms. r=gfritzsche, data-review=francois
MozReview-Commit-ID: H2pE3VivWIX
2017-05-17 04:10:00 +02:00
Chris H-C
d212df97df bug 1366294 - Part 13 - Fix telemetry-using tests. r=Dexter
Some tests were using "secret" APIs to get at telemetry knowledge from various
processes in various ways. Adjust them so that they work with the new ways of
doing things.

MozReview-Commit-ID: 2iBL00HVGyg
2017-07-24 09:52:26 -04:00
Avikalpa Kundu
6b146f30b8 Bug 1355498 - Refactor commonly used actions in functions within TestHistograms.cpp. r=Dexter 2017-05-25 10:45:00 -04:00
Avikalpa Kundu
01c9a4b79c Bug 1345861 - Add C++ test coverage for the Keyed Count Histogram. r=Dexter 2017-04-11 10:46:00 -04:00
Avikalpa Kundu
c91887f186 Bug 1312698 - Add test coverage for the C++ Histogram API. r=dexter 2017-03-08 02:59:00 -05:00