Commit Graph

66 Commits

Author SHA1 Message Date
Ehsan Akhgari
88afb100de Backout bug 1350765 for having caused bug 1358259 2017-04-25 11:20:04 -04:00
Ehsan Akhgari
9d584db59a Bug 1350765 - Avoid recomputing the histogram ID when it's available in the caller; r=chutten 2017-04-19 12:02:30 -04:00
Chris H-C
a2a550854b bug 1353295 - Remove addonHistograms from Telemetry r=Dexter
addonHistograms isn't being used and has started getting in the way.
So it goes.

Leave the "Addon Histograms" section in about:telemetry for 60 days.
Remove it in bug 1355882

MozReview-Commit-ID: 4lm7ONirofl
2017-04-06 15:31:58 -04:00
Markus Stange
600220e2a0 Bug 1356898 - Use nsAutoCString in two places in TelemetryHistogram.cpp. r=froydnj
MozReview-Commit-ID: 3njPBvdhwRj
2017-04-16 14:18:00 -04:00
Carsten "Tomcat" Book
6d5a053fe2 Backed out changeset cfe47bace342 (bug 1353295) for assertion failures 2017-04-13 09:39:17 +02:00
Chris H-C
79504a7b9d bug 1353295 - Remove addonHistograms from Telemetry r=Dexter
addonHistograms isn't being used and has started getting in the way.
So it goes.

Leave the "Addon Histograms" section in about:telemetry for 60 days.
Remove it in bug 1355882

MozReview-Commit-ID: 4lm7ONirofl
2017-04-06 15:31:58 -04:00
Georg Fritzsche
7d536d302f Bug 1347216 - Fix categorical keyed histograms. r=Dexter
This also fixes an existing bug where we checked for the wrong type in JSKeyedHistogram_Add().
KeyedHistogram::GetHistogramType() returns one of the histogram types from nsITelemetry.idl, not one of the chromium types (base::*).

I extended the test coverage accordingly, as it seemed to be lacking.
2017-04-07 20:55:51 +07:00
Gregory Moore
58aad3a66b Bug 1120409 - nsITelemetry.histogramSnapshots will no longer return keyed histograms. r=chutten 2017-03-24 12:38:24 -07:00
Alessio Placitelli
935681bcef Bug 1321349 - Make histogram.add check 'this' for the proper JSClass. r=gfritzsche 2017-02-21 01:55:00 +01:00
Carsten "Tomcat" Book
31efc35cdf Backed out changeset 5733e0b0e096 (bug 1120409) for causing frequent timeouts in test_XHR_timeout.html 2017-03-21 11:28:38 +01:00
Gregory Moore
1a10eeec68 Bug 1120409 - nsITelemetry.histogramSnapshots will no longer return keyed histograms. r=gfritzsche 2017-02-22 14:53:56 -08:00
clinton
4213fb3b39 Bug 1346208 - Remove B2G-specific code from Telemetry C++ modules r=gfritzsche
MozReview-Commit-ID: 3iU7OcHePno
2017-03-12 10:38:22 +11:00
Tom Tromey
5b535c20c5 Bug 1345626 - remove KeyedHistogram::GetDataset; r=Dexter
MozReview-Commit-ID: 8I7WKHfl0RA
2017-03-08 14:39:24 -07:00
Vedant Sareen
d21da17bda Bug 1341236 - Drop the |dataset()| function from keyed & plain histograms. r=Dexter
Dropped the dataset() functions from keyed and plain histograms in file |toolkit/components/telemetry/TelemetryHistogram.cpp| to prevent their unnecessary exposure while getting histograms using the getHistogramById function (or its keyed counterpart).
Also removed the (now redundant) |internal_JSHistogram_Dataset()| and |internal_JSKeyedHistogram_Dataset()| functions from the same file and tests from the file |toolkit/components/telemetry/tests/unit/test_TelemetryHistograms.js| as the same tests are performed later on in that very file.
2017-03-06 19:06:53 +05:30
Alessio Placitelli
9cf522342c Backed out changeset 3bb2c974b5dc due to Browser Console spamming (bug 1334469) 2017-02-23 18:23:50 +01:00
Alessio Placitelli
50767397f0 Bug 1334469 - Make sure Keyed Histogram APIs don't allow empty keys. r=gfritzsche
iff --git a/toolkit/components/telemetry/docs/collection/histograms.rst b/toolkit/components/telemetry/docs/collection/histograms.rst

MozReview-Commit-ID: EkiP42ZVpqz
2017-02-21 06:03:00 +01:00
Vedant Sareen
a85a2ad339 Bug 1330907 - Rename Telemetry::ID to Telemetry::HistogramID. r=dexter
Changed |print("enum ID : uint32_t {", file=output)| to |print("enum HistogramID : uint32_t {", file=output)| at line 53 of the file |toolkit/components/telemetry/gen-histogram-enum.py|, and then replaced all the textual occurrences of |Telemetry::ID| to |Telemetry::HistogramID| and |ID| to |HistogramID| in 43 other files.
2017-02-16 00:45:15 +05:30
Georg Fritzsche
2011d0ae0c Bug 1339749 - Refactor Telemetry IPC code. r=chutten 2017-02-15 16:25:40 +01:00
Sylvestre Ledru
684bd41226 Bug 1338086 - Remove useless else blocks in order to reduce complexity in toolkit/components/telemetry/ r=Dexter
MozReview-Commit-ID: EjMufQ1PReI
2017-02-09 10:52:55 +01:00
Georg Fritzsche
39492723eb Bug 1339365 - Move Histogram ID validity checks to outer API. r=chutten 2017-02-14 20:09:32 +01:00
Alessio Placitelli
f752c498c1 Bug 1278556 - Move the IPC timer logic to TelemetryIPCAccumulator.cpp. r=chutten
MozReview-Commit-ID: DSyFUM967F0
2017-01-16 05:10:00 +01:00
Alessio Placitelli
04015c8eae Bug 1315906 - Change JS histogram add functions so that it doesn't throw. r=gfritzsche 2016-12-20 08:32:00 +01:00
Sylvestre Ledru
0f65f2ab6c Bug 1318004 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11. r=Ehsan
MozReview-Commit-ID: lk5eJXUno9
2016-11-16 17:12:13 +01:00
Wes Kocher
b620596e75 Backed out 4 changesets (bug 1318004) for xpcshell failures a=backout CLOSED TREE
Backed out changeset a3fe53641526 (bug 1318004)
Backed out changeset a5d1676b6f88 (bug 1318004)
Backed out changeset b56b37f0f4d7 (bug 1318004)
Backed out changeset fb5254baf1cb (bug 1318004)
2016-11-21 16:15:38 -08:00
Sylvestre Ledru
7ccbd595c5 Bug 1318004 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11. r=Ehsan
MozReview-Commit-ID: lk5eJXUno9
2016-11-16 17:12:13 +01:00
Wes Kocher
13642ca8af Backed out 4 changesets (bug 1318004) for xpcshell failures a=backout
Backed out changeset 6995bd33872b (bug 1318004)
Backed out changeset 9be5c856bc78 (bug 1318004)
Backed out changeset 365b0b7f289a (bug 1318004)
Backed out changeset 2f2ebf176eac (bug 1318004)
2016-11-21 12:23:17 -08:00
Sylvestre Ledru
ea83e5e8bd Bug 1318004 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11. r=Ehsan
MozReview-Commit-ID: lk5eJXUno9
2016-11-16 17:12:13 +01:00
Chris H-C
9e6a6343c2 Bug 1314818 - Build fix: remove function erroneously included from 9f373cd98bab8e92ef5a0238edc9d50f8f2d5587 during rebase r=bustage-fix on a CLOSED TREE
MozReview-Commit-ID: 8HBHZ9MGBNv
---
 toolkit/components/telemetry/TelemetryHistogram.cpp | 10 ----------
 1 file changed, 10 deletions(-)
2016-11-09 11:14:47 -05:00
Chris H-C
161944f34d bug 1314818 - Get and dispatch telemetry accumulation to the main thread directly. r=froydnj
NS_DispatchToMainThread can fail catastrophically during shutdown. Simply
listening for shutdown isn't enough to prevent catastrophe. So directly fetch
the main thread and, if you can't, then don't try to use it.

MozReview-Commit-ID: 7iFQEqqQekB
2016-11-08 14:39:42 -05:00
Chris H-C
1084cecdbe bug 1314818 - Revert "bug 1304660 - Don't dispatch to main once xpcom starts shutting down." r=froydnj
This didn't quite work, as we still managed to try to dispatch during shutdown.

MozReview-Commit-ID: lnWoCrJUtu
2016-11-08 14:18:31 -05:00
AdamG2
fa1c11cef7 Bug 1300491 - Removed histogramFrom and resulting unused functions, all STARTUP_* histograms, and any tests using these. r=chutten
MozReview-Commit-ID: EnVYxGIOWgs
2016-11-07 15:13:01 -05:00
Chris H-C
8a091c3870 bug 1312778 - Ensure histogram recording is enabled before remote accumulation r=gfritzsche
There is a mechanism to selectively turn hgram recording off and on. This is
presently only used to throttle an otherwise-devastatingly-chatty hgram to only
contain accumulations from specific times (sync scroll).

This was only checked on the parent. This checks it on the child as well.

MozReview-Commit-ID: 4f0VXMHLaPW
2016-10-31 14:36:14 -04:00
David Anderson
c61aa58fc0 Send accumulated GPU process telemetry to the UI process. (bug 1304494 part 3, r=gfritzsche) 2016-10-30 22:35:57 -07:00
David Anderson
b63b7119f6 Refactor TelemetryHistogram to support multiple child process types. (bug 1304494 part 2, r=gfritzsche) 2016-10-30 22:35:57 -07:00
Sebastian Hengst
e87bad3294 Backed out changeset 4fb54b655a91 (bug 1300491) for build bustage in TelemetryHistogram.cpp (defined but not used). r=backout 2016-10-24 17:38:21 +02:00
AdamG2
54e9f2b30e Bug 1300491 - Removed histogramFrom and resulting unused functions, all STARTUP_* histograms, and any tests using these. r=chutten
MozReview-Commit-ID: CgeLy5kJbj5
2016-10-21 07:49:31 -04:00
Chris H-C
5d2f4dd5c0 bug 1304519 - Ensure we hold a lock before accumulating. r=gfritzsche
Lock calls to internal_Accumulate from functions that run without locks.

This doesn't render TelemetryHistogram perfectly threadsafe. However,
this does protect all accumulation sites.

MozReview-Commit-ID: 16JUek8NiXI
2016-10-05 09:21:25 -04:00
Chris H-C
b6e063b270 bug 1304660 - Don't dispatch to main once xpcom starts shutting down. r=froydnj
If we manage to dispatch to main after xpcom shutdown, the main thread won't
care for our new runnable and leak it.

MozReview-Commit-ID: 8t4hOgfgEeP
2016-09-28 14:44:35 -04:00
Carsten "Tomcat" Book
63402ac422 merge mozilla-inbound to mozilla-central a=merge 2016-09-29 11:44:58 +02:00
Tooru Fujisawa
a5294e0308 Bug 1289050 - Part 1: Use ASCII variant of JS_ReportError in simple case. r=jwalden 2016-08-14 20:39:28 +09:00
ajay
f09b5e319d Bug 1304735 - Remove ClearHistogram r=chutten
MozReview-Commit-ID: Ez7u2gsRX6R
2016-09-22 21:48:19 +05:30
Chris H-C
a0fde28cee bug 1218576 - Request an immediate batch send when the batch size hits a high water mark. r=gfritzsche
We've now seen an OOM trying to grow the accumulations array during a test
suite. The g*Accumulations arrays do grow unboundedly in size waiting for the
IPC timer to fire, so we should put a size bound as well as a time bound to
trigger the batch send.

The current size bound is 5K elements. This was chosen out of a hat.

MozReview-Commit-ID: 5HeWdbLfN03
2016-09-19 13:30:25 -04:00
Chris H-C
079b09b927 bug 1218576 - Ensure accumulations are for valid IDs. r=gfritzsche
We're seeing occasional failures of the isValid assert on the parent side where
the ID we're being asked to accumulate on is invalid.

Check the IDs on both sides to ensure that they're valid heading in.

MozReview-Commit-ID: 4gLG54Tx64s
2016-09-19 13:30:25 -04:00
Chris H-C
896c9e6ad1 bug 1218576 - Ensure IPCTimer is on the main thread. r=froydnj f=gfritzsche
nsTimer fires on the thread that created the timer. An nsTimer instance should
only be manipulated on its target thread (it isn't threadsafe). IPC using
PContent must be on the main thread.

Thus, everything to do with the gIPCTimer must be on the main thread.

This also takes care of bug 1299312.

MozReview-Commit-ID: IcVRYsoX2R9
2016-09-19 13:30:25 -04:00
Chris H-C
24c99fcfd8 bug 1218576 - Change unused.h to Unused.h, which matters to some filesystems. r=gfritzsche
MozReview-Commit-ID: GOy5Xz2Pxta
2016-09-19 13:30:25 -04:00
Chris H-C
983a145ecf bug 1218576 - Aggregate child categorical histograms in the parent process. r=gfritzsche
Rewrite the categorical histogram accumulation code to use the common path.
This way it gets remote accumulation for cheap.

MozReview-Commit-ID: 3q6gdSvBix
2016-09-19 13:30:25 -04:00
Chris H-C
afef75f258 bug 1218576 - Ensure we can record before trying to record categorical histograms. r=gfritzsche
Every other Accumulate call has it :S

MozReview-Commit-ID: 8uWtADebuJ1
2016-09-19 13:30:25 -04:00
Chris H-C
6582dbcb12 bug 1218576 - Ensure Telemetry IDs coming from IPC are valid r=gfritzsche
I saw a one-off crash on try in internal_GetHistogramByEnumId. Not reproducible
but maybe possible if we're trying to accumulate using an invalid ID. So let's
guard against that.

MozReview-Commit-ID: Ei6eTlV91mJ
2016-09-19 13:30:25 -04:00
Chris H-C
00251d488b bug 1218576 - Ensure remaining batched telemetry is flushed on content process shutdown r=gfritzsche
On content process shutdown we send a content process ping to ensure we have
up-to-date data from the content process before it goes away. Now we need to
also flush the batched telemetry accumulations to the parent so that it can be
present in the ping.

No attempt is made to synchronize access to IPCTimerFired. It is safe to
re-enter.

No attempt is made to cancel the timer as its firing is benign.

MozReview-Commit-ID: 1gjNH9IPhKf
2016-09-19 13:30:25 -04:00
Chris H-C
83ced604e0 bug 1218576 - Assert we're the parent process when clearing histograms. r=gfritzsche
Clear isn't generally called at all, and isn't dispatched to the parent process
for child telemetry aggregation. Clear should only be called on the parent
process.

MozReview-Commit-ID: stIutvAO6h
2016-09-19 13:30:25 -04:00