Matthew Gaudet
fbbed4f359
Bug 1904429 - Extract some core logging types into their own header file r=padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D217873
2024-08-23 15:52:45 +00:00
Iulian Moraru
890273720e
Backed out 5 changesets (bug 1904429) for causing ThreadSanitizer linux tsan failures.
...
Backed out changeset 787f23230ebd (bug 1904429)
Backed out changeset 81e85421af01 (bug 1904429)
Backed out changeset 9bf9011b0736 (bug 1904429)
Backed out changeset a59511524bc7 (bug 1904429)
Backed out changeset e74a80333551 (bug 1904429)
2024-08-22 23:57:12 +03:00
Matthew Gaudet
876cc70614
Bug 1904429 - Extract some core logging types into their own header file r=padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D217873
2024-08-22 17:05:59 +00:00
Julien Wajsberg
c4488f6ae4
Bug 1894703 - Set logging modules from a single preference r=padenot
...
This uses a new preference logging.config.modules. When the user sets a
MOZ_LOG string to this preference, it's parsed the same way and the
corresponding modules are enabled.
Differential Revision: https://phabricator.services.mozilla.com/D209249
2024-05-23 08:14:16 +00:00
Tamas Szentpeteri
34353a7a45
Backed out 3 changesets (bug 1894703) for causing failures related to DOCSHELL logging. CLOSED TREE
...
Backed out changeset f9a8141501a7 (bug 1894703)
Backed out changeset e8eb7ab47374 (bug 1894703)
Backed out changeset a84074f814da (bug 1894703)
2024-05-16 21:12:06 +03:00
Julien Wajsberg
4ab8104709
Bug 1894703 - Set logging modules from a single preference r=padenot
...
This uses a new preference logging.config.modules. When the user sets a
MOZ_LOG string to this preference, it's parsed the same way and the
corresponding modules are enabled.
Differential Revision: https://phabricator.services.mozilla.com/D209249
2024-05-16 15:51:07 +00:00
Kelsey Gilbert
7cf6146205
Bug 1874226 - Use unique_ptr not Scoped in xpcom/*. r=xpcom-reviewers,necko-reviewers,valentin,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D200250
2024-02-07 18:30:22 +00:00
Cosmin Sabou
ce591ce37b
Backed out 2 changesets (bug 1874226) for causing bustages on dom/ContentParent.h. CLOSED TREE
...
Backed out changeset 3efd59369cd6 (bug 1874226)
Backed out changeset cd7b0bd12dae (bug 1874226)
2024-02-06 03:08:23 +02:00
Kelsey Gilbert
34bc48eb8c
Bug 1874226 - Use unique_ptr not Scoped in xpcom/*. r=xpcom-reviewers,necko-reviewers,valentin,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D200250
2024-02-06 00:21:43 +00:00
Mike Hommey
74365b6dfd
Bug 1836890 - Remove uses of chromium's OS_* macros in Gecko code. r=nika,media-playback-reviewers,keeler,gfx-reviewers,emilio,necko-reviewers,kershaw,karlt,jrmuizel
...
Differential Revision: https://phabricator.services.mozilla.com/D180039
2023-06-06 20:00:47 +00:00
Nazım Can Altınova
c91a8714b7
Bug 1803751 - Make some marker fields searchable and bump the profile version r=julienw
...
Differential Revision: https://phabricator.services.mozilla.com/D163714
2022-12-13 14:19:07 +00:00
Iulian Moraru
94985653c4
Backed out changeset 27f8690ebc50 (bug 1803751) for causing xpcshell failures on test_feature_mainthreadio.js. CLOSED TREE
2022-12-12 17:43:23 +02:00
Nazım Can Altınova
76eaba45b7
Bug 1803751 - Make some marker fields searchable and bump the profile version r=julienw
...
Differential Revision: https://phabricator.services.mozilla.com/D163714
2022-12-12 13:11:56 +00:00
Paul Adenot
683cc847fc
Bug 1801922 - Warn if kInitialModuleCount is too low. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D162873
2022-11-25 12:59:44 +00:00
Florian Quèze
1cd90f9242
Bug 1705019 - Always record LogMessage profiler markers for enabled log messages when the profiler is enabled and add a new 'profilerstacks' keyword to enable capturing stacks in these markers, r=mstange.
...
Differential Revision: https://phabricator.services.mozilla.com/D156969
2022-09-13 13:26:24 +00:00
Andi-Bogdan Postelnicu
eaf5c3d9d1
Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium
...
Updated with clang-format version 14.0.5 (taskcluster-DydCt-ryTuKvBYw1HQOugw)
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D154661
2022-08-16 07:08:27 +00:00
Paul Adenot
99b964f4fb
Bug 1657197 - Support enabling MOZ_LOG profilermarkers mirroring at runtime. r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D152166
2022-07-20 13:25:33 +00:00
Mike Hommey
45b9f403ab
Bug 1766561 - Use %lu for Windows Error types (DWORD). r=rkraesig,xpcom-reviewers,application-update-reviewers,mhowell,bobowen,necko-reviewers,keeler,media-playback-reviewers,bytesized,barret,alwu,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D144914
2022-05-03 20:49:07 +00:00
Mike Hommey
26702692e3
Bug 1766561 - Adapt formatting to the difference in ProcessId type across platforms. r=nika,necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D144911
2022-05-03 20:49:04 +00:00
Gerald Squelart
8c94ff82ed
Bug 1738627 - profiler_thread_is_being_profiled_for_markers - r=canaltinova
...
`profiler_thread_is_being_profiled` is used a lot for markers, so it makes sense to have a specialized version, which is a bit shorter, and lives in ProfilerMarkers.h.
Differential Revision: https://phabricator.services.mozilla.com/D130009
2021-11-08 23:59:35 +00:00
Cristian Tuns
839b72e1d3
Backed out 5 changesets (bug 1738627) for causing xpcshell failures on test_ext_geckoProfiler_schema.js CLOSED TREE
...
Backed out changeset 42d385d7da97 (bug 1738627)
Backed out changeset edeb3a338954 (bug 1738627)
Backed out changeset 98f02e35134d (bug 1738627)
Backed out changeset 711daa6dd24b (bug 1738627)
Backed out changeset 49e12753a40c (bug 1738627)
2021-11-05 05:12:28 -04:00
Gerald Squelart
019bfd575e
Bug 1738627 - profiler_thread_is_being_profiled_for_markers - r=canaltinova
...
`profiler_thread_is_being_profiled` is used a lot for markers, so it makes sense to have a specialized version, which is a bit shorter, and lives in ProfilerMarkers.h.
Differential Revision: https://phabricator.services.mozilla.com/D130009
2021-11-05 05:52:28 +00:00
Gerald Squelart
e52556d921
Bug 1735697 - Remove profiler_can_accept_markers(), use profiler_thread_is_being_profiled() instead - r=florian
...
Differential Revision: https://phabricator.services.mozilla.com/D128577
2021-10-18 23:11:30 +00:00
Nazım Can Altınova
78dc6f6c66
Bug 1728544 - Make the MarkerSchema::Format enum class values CamelCased r=gerald
...
Differential Revision: https://phabricator.services.mozilla.com/D124241
2021-09-03 14:30:10 +00:00
Nazım Can Altınova
9bc6c810fc
Bug 1728544 - Make the MarkerSchema::Location enum class values CamelCased r=gerald
...
Differential Revision: https://phabricator.services.mozilla.com/D124240
2021-09-03 14:30:09 +00:00
Tom Ritter
7830c4464f
Bug 1666222: Cut over a ton of NowUnfuzzed calls -> Now 4/5 r=smaug,extension-reviewers,zombie
...
With Fuzzyfox removed, Now() does what NowUnfuzzed() did.
Differential Revision: https://phabricator.services.mozilla.com/D119639
2021-07-14 18:18:17 +00:00
Toshihito Kikuchi
1881f8e533
Bug 1701368 - Part1: Extract nsAvailableMemoryWatcher as AvailableMemoryWatcherWin.cpp. r=gsvelto
...
This patch splits `nsAvailableMemoryWatcher` into 1) an nsISupports-derived class
`nsAvailableMemoryWatcherBase` and 2) a platform-specific class `nsAvailableMemoryWatcher`,
taking out the 2) part as a new file AvailableMemoryWatcherWin.cpp without any change.
Test cases for `nsAvailableMemoryWatcher` will be added by a subsequent patch.
Differential Revision: https://phabricator.services.mozilla.com/D117669
2021-07-06 22:30:57 +00:00
Butkovits Atila
951bf17039
Backed out 7 changesets (bug 1701368) for causing build bustages on TestMemoryPressure.cpp. CLOSED TREE
...
Backed out changeset 3be9f410b666 (bug 1701368 )
Backed out changeset 907317341862 (bug 1701368 )
Backed out changeset 38fb1e114a53 (bug 1701368 )
Backed out changeset f3a475931a13 (bug 1701368 )
Backed out changeset 98046adfc310 (bug 1701368 )
Backed out changeset d773413513cf (bug 1701368 )
Backed out changeset feca7daa9c96 (bug 1701368 )
2021-07-07 00:21:34 +03:00
Toshihito Kikuchi
1b24548129
Bug 1701368 - Part1: Extract nsAvailableMemoryWatcher as AvailableMemoryWatcherWin.cpp. r=gsvelto
...
This patch splits `nsAvailableMemoryWatcher` into 1) an nsISupports-derived class
`nsAvailableMemoryWatcherBase` and 2) a platform-specific class `nsAvailableMemoryWatcher`,
taking out the 2) part as a new file AvailableMemoryWatcherWin.cpp without any change.
Test cases for `nsAvailableMemoryWatcher` will be added by a subsequent patch.
Differential Revision: https://phabricator.services.mozilla.com/D117669
2021-07-06 18:59:07 +00:00
Florian Quèze
bad6178c51
Bug 1717991 - Remove ifdefs around code that adds profiler markers with custom marker schemas, r=gerald.
...
Differential Revision: https://phabricator.services.mozilla.com/D118680
2021-06-25 13:28:01 +00:00
Gerald Squelart
94669f1e81
Bug 1704654 - Display MOZ_LOG markers in marker chart as well - r=canaltinova
...
Differential Revision: https://phabricator.services.mozilla.com/D111742
2021-04-21 08:16:53 +00:00
Nick Alexander
d83c92a26e
Bug 1694530 - Allow to prepend a distinct header by using MOZ_LOG=prependheader. r=xpcom-reviewers,nika
...
This is follow-up to Bug 1687549, which added the `maxsize` flag.
That works well, but it's hard to distinguish separate logging
sessions. This makes it a little easier.
This calls through to a slightly modified `Print`, leveraging the
concurrency correctness of that implementation. Doing so doesn't
allow great visual distinction, but it's enough.
This produces output like:
```
$ firefox --backgroundtask success --MOZ_LOG prependheader
***
[(null) 1937604: Main Thread]: I/Logger Opening log
*** You are running in background task mode. ***
...
```
and
```
$ firefox --backgroundtask success --MOZ_LOG prependheader,raw
***
Opening log
*** You are running in background task mode. ***
...
```
Differential Revision: https://phabricator.services.mozilla.com/D106224
2021-03-13 00:18:47 +00:00
Simon Giesecke
7c075f27d9
Bug 1691913 - Rename nsBaseHashtable::GetOrInsert(With) to LookupOrInsert(With). r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
...
The functions should be called "Lookup" rather than "Get" because they return
a DataType& (rather than UserDataType).
Differential Revision: https://phabricator.services.mozilla.com/D105472
2021-02-26 09:11:45 +00:00
Simon Giesecke
8adc4d231c
Bug 1691894 - Replace several suboptimal uses of Put after Get by GetOrInsertWith or WithEntryHandle. r=xpcom-reviewers,necko-reviewers,kmag,valentin,geckoview-reviewers,agi
...
Differential Revision: https://phabricator.services.mozilla.com/D104849
2021-02-15 15:12:17 +00:00
smolnar
03bc7728ba
Backed out 5 changesets (bug 1691894) for causing hazard failures in nsXULPrototypeCache. CLOSED TREE
...
Backed out changeset 22dc870ee609 (bug 1691894)
Backed out changeset 58c31e9d6ae3 (bug 1691894)
Backed out changeset 7483e84149d8 (bug 1691894)
Backed out changeset f977d6cfa973 (bug 1691894)
Backed out changeset db4503476f34 (bug 1691894)
2021-02-15 16:43:23 +02:00
Simon Giesecke
1a0fd1ffb7
Bug 1691894 - Replace several suboptimal uses of Put after Get by GetOrInsertWith or WithEntryHandle. r=xpcom-reviewers,necko-reviewers,kmag,valentin,geckoview-reviewers,agi
...
Differential Revision: https://phabricator.services.mozilla.com/D104849
2021-02-15 10:04:45 +00:00
Nick Alexander
098ff4a7ab
Bug 1687549 - Allow to limit MOZ_LOG file with maxsize:N when using append. r=xpcom-reviewers,kmag
...
The existing `append` option allows to accumulate logs. The `rotate:N`
option added in Bug 1244306 allows to limit the growth of the log, but
it's both incompatible with `append` and not well suited for a single
cumulative historical log across multiple runs, since it's unclear how
to manage the current log file index across invocations. Continuously
limiting the file size for each log message is technically
challenging.
This commit pursues a much simpler approach. When `maxsize:N` is
specified with `append`, before a log file is opened, it "tails" the
file to be at most N // 2 bytes long. It tries to keep lines intact
at low runtime memory cost, but allows very long lines may be cut.
This implementation wants an atomic file rename operation, which is
supported on Win32 and POSIX OSes only at this time. On other OSes, a
compile time error will be raised.
Differential Revision: https://phabricator.services.mozilla.com/D103405
2021-02-03 04:35:01 +00:00
Gerald Squelart
e9db5716f6
Bug 1675409 - Migrated LogMarkerPayload to Markers 2.0 API - r=gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D96039
2020-11-18 21:47:24 +00:00
Razvan Maries
4c8d4ec411
Backed out 23 changesets (bug 1675409) for build bustages on Preferences.cpp. CLOSED TREE
...
Backed out changeset c1a131a55767 (bug 1675409)
Backed out changeset 47d210802a5d (bug 1675409)
Backed out changeset e8ebb1c58d30 (bug 1675409)
Backed out changeset 69a1e9aeff2a (bug 1675409)
Backed out changeset 68f330b387a8 (bug 1675409)
Backed out changeset e4750d9ef5a1 (bug 1675409)
Backed out changeset bb6bb71e5ab3 (bug 1675409)
Backed out changeset 988d7f4716df (bug 1675409)
Backed out changeset ca41382e891c (bug 1675409)
Backed out changeset 90f3fbbbbeda (bug 1675409)
Backed out changeset 9b109d61a6f6 (bug 1675409)
Backed out changeset 3dd66abfdaa2 (bug 1675409)
Backed out changeset 44181df5f0db (bug 1675409)
Backed out changeset bb2603d947fc (bug 1675409)
Backed out changeset 97055cf20a56 (bug 1675409)
Backed out changeset f88fcf09de0d (bug 1675409)
Backed out changeset 7963e1c49786 (bug 1675409)
Backed out changeset 4c379c1061c3 (bug 1675409)
Backed out changeset b8be8ae7da63 (bug 1675409)
Backed out changeset 0b90aa89421e (bug 1675409)
Backed out changeset c10fb46467c9 (bug 1675409)
Backed out changeset 894ac233b290 (bug 1675409)
Backed out changeset 075d1d8e34c2 (bug 1675409)
2020-11-18 20:06:28 +02:00
Gerald Squelart
4170b28e39
Bug 1675409 - Migrated LogMarkerPayload to Markers 2.0 API - r=gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D96039
2020-11-17 22:16:49 +00:00
Mihai Alexandru Michis
58bfb63636
Backed out 24 changesets (bug 1666566, bug 1675409) for causing hazard failures in profiler/core/platform.cpp
...
CLOSED TREE
Backed out changeset 4d8af8533fd4 (bug 1666566)
Backed out changeset f031a3a8a20f (bug 1675409)
Backed out changeset 2b7e1a031921 (bug 1675409)
Backed out changeset bda5a24b2d0a (bug 1675409)
Backed out changeset 4282e2284314 (bug 1675409)
Backed out changeset 0637f1b26e9f (bug 1675409)
Backed out changeset 67ae04c8f607 (bug 1675409)
Backed out changeset 6c7b3f3618ef (bug 1675409)
Backed out changeset 2f325c22d169 (bug 1675409)
Backed out changeset 1e48ff70ad8f (bug 1675409)
Backed out changeset 1dfc32d6871d (bug 1675409)
Backed out changeset 4f1f218a777b (bug 1675409)
Backed out changeset e6ac8722b38e (bug 1675409)
Backed out changeset cf132e15fb57 (bug 1675409)
Backed out changeset a126e6b00ba9 (bug 1675409)
Backed out changeset fbc7fbb04f33 (bug 1675409)
Backed out changeset 554c69681474 (bug 1675409)
Backed out changeset 44d0521c701f (bug 1675409)
Backed out changeset 04653dfe4720 (bug 1675409)
Backed out changeset 41ca2c043a00 (bug 1675409)
Backed out changeset 264ae4c805d4 (bug 1675409)
Backed out changeset 5f3bbdac0d52 (bug 1675409)
Backed out changeset 11311c11a6e8 (bug 1675409)
Backed out changeset 0355fbc44baf (bug 1675409)
2020-11-17 19:31:28 +02:00
Gerald Squelart
05b3685fc6
Bug 1675409 - Migrated LogMarkerPayload to Markers 2.0 API - r=gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D96039
2020-11-17 11:31:37 +00:00
Valentin Gosu
4e7f22aa2d
Bug 1669813 - Pass %s format to VsprintfLiteral instead of logged string r=dragana
...
ExternMozLog treated aMsg as a format, instead of the string being printed.
If it happened to contain any escape sequences, it led to a crash as the parameters weren't there.
Differential Revision: https://phabricator.services.mozilla.com/D92886
2020-10-08 10:17:12 +00:00
Valentin Gosu
1dea85554c
Bug 1624090 - Make it possible to forward rust logging into the Gecko logger r=froydnj
...
This makes it possible to enable rust logging at runtime using about:networking
Differential Revision: https://phabricator.services.mozilla.com/D73146
2020-05-09 11:24:33 +00:00
Andrew McCreight
611f5029e6
Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
...
Patch by bhackett and jlaster. Also reviewed by mccr8.
Differential Revision: https://phabricator.services.mozilla.com/D60197
2020-02-27 17:39:15 +00:00
Ciure Andrei
c06273c350
Backed out changeset d407a28318e6 (bug 1609815) for causing windows ming bustages CLOSED TREE
2020-02-27 07:05:19 +02:00
Andrew McCreight
179c12c3e5
Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
...
Patch by bhackett and jlaster. Also reviewed by mccr8.
Differential Revision: https://phabricator.services.mozilla.com/D60197
2020-02-27 04:43:48 +00:00
Doug Thayer
e1f74d8202
Bug 1615921 - Suspend late write checks in Windows vprintf_stderr r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D63216
2020-02-21 18:51:37 +00:00
Sylvestre Ledru
9bd2328337
Bug 1519636 - Automatically reformat recent changes using clang-format r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D60354
2020-01-21 09:51:27 +00:00
Randell Jesup
4626977b2d
Bug 1608523: Add MOZ_LOG_TIME() to allow time ranges for logs r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D59552
2020-01-14 21:36:19 +00:00