Commit Graph
67 Commits
Author SHA1 Message Date
Sylvestre Ledru 6149f49299 Bug 2023419 - Remove Emacs/Vim modelines from xpcom/ r=emilio
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287878
2026-03-16 17:22:07 +00:00
Paul Bone 3bf2be33cd Bug 1996828 - MemoryTelemetry doesn't need to inherrit from nsISupports r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D274875
2026-02-27 09:21:02 +00:00
Paul Bone 106c391746 Bug 1996828 - Move the shutdown observer into TelemetryImpl r=chutten
This shutdown observer flushes telemetry from content processes during
shutdown.  It may have been created for memory telemetry but it's more
general.

Differential Revision: https://phabricator.services.mozilla.com/D274874
2026-02-27 09:20:59 +00:00
Paul Bone 33bf1fa366 Bug 1996828 - Make creation of MemoryTelemetry explicit r=chutten
Until telemetry is initialised MemoryTelemetry will consume no memory.

Differential Revision: https://phabricator.services.mozilla.com/D274873
2026-02-27 09:20:56 +00:00
Paul Bone 02c605203d Bug 1996828 - Use reference counting for MemoryTelemetry r=chutten
MemoryTelemetry was already ref counted, but it also had a static global
that was assumed to be never cleared/freed.  This patch makes it
entirely reference counted and places a reference in TelemetryImpl so
that TelemetryImpl can always access it.  It also requires threadsafe
reference counting since some of the memory telemetry is collected
off-thread.

Differential Revision: https://phabricator.services.mozilla.com/D274872
2026-02-27 09:20:53 +00:00
agoloman 4bea86c2ae Revert "Bug 1996828 - MemoryTelemetry doesn't need to inherrit from nsISupports r=toolkit-telemetry-reviewers,chutten" for causing mda failures @browser_encrypted_play_time_telemetry.js.
This reverts commit 4fb3fa3925.

Revert "Bug 1996828 - Move the shutdown observer into TelemetryImpl r=toolkit-telemetry-reviewers,chutten"

This reverts commit bc6ccb4c06.

Revert "Bug 1996828 - Make creation of MemoryTelemetry explicit r=toolkit-telemetry-reviewers,chutten"

This reverts commit bad6494dd2.

Revert "Bug 1996828 - Use reference counting for MemoryTelemetry r=toolkit-telemetry-reviewers,chutten"

This reverts commit 0147760b37.
2025-12-09 08:30:05 +00:00
Paul Bone 4fb3fa3925 Bug 1996828 - MemoryTelemetry doesn't need to inherrit from nsISupports r=toolkit-telemetry-reviewers,chutten
Differential Revision: https://phabricator.services.mozilla.com/D274875
2025-12-09 07:20:53 +00:00
Paul Bone bc6ccb4c06 Bug 1996828 - Move the shutdown observer into TelemetryImpl r=toolkit-telemetry-reviewers,chutten
This shutdown observer flushes telemetry from content processes during
shutdown.  It may have been created for memory telemetry but it's more
general.

Differential Revision: https://phabricator.services.mozilla.com/D274874
2025-12-09 07:20:51 +00:00
Paul Bone bad6494dd2 Bug 1996828 - Make creation of MemoryTelemetry explicit r=toolkit-telemetry-reviewers,chutten
Until telemetry is initialised MemoryTelemetry will consume no memory.

Differential Revision: https://phabricator.services.mozilla.com/D274873
2025-12-09 07:20:48 +00:00
Paul Bone 0147760b37 Bug 1996828 - Use reference counting for MemoryTelemetry r=toolkit-telemetry-reviewers,chutten
MemoryTelemetry was already ref counted, but it also had a static global
that was assumed to be never cleared/freed.  This patch makes it
entirely reference counted and places a reference in TelemetryImpl so
that TelemetryImpl can always access it.  It also requires threadsafe
reference counting since some of the memory telemetry is collected
off-thread.

Differential Revision: https://phabricator.services.mozilla.com/D274872
2025-12-09 07:20:45 +00:00
serge-sans-paille dddfa6d699 Bug 1769188 - Replace all instances of MOZ_TRY_VAR by MOZ_TRY r=emilio,profiler-reviewers,win-reviewers,firefox-style-system-reviewers,layout-reviewers,dom-worker-reviewers,canaltinova,gstoll
According to the doc of mfbt/Try.h, MOZ_TRY_VAR is obsolete. Yet it was
used a lot across the code base.

Solely relying on MOZ_TRY is both nicer to the eye and more generic, as
it allows setting variable that don't have a default constructor, and
event sometimes more efficient, if the default constructor is
non-trivial.

Differential Revision: https://phabricator.services.mozilla.com/D268466
2025-10-14 15:15:14 +00:00
Bas Schouten c17df0353b Bug 1988716 - Part 3: Make numerous memory probes labeled with their process. r=mccr8,toolkit-telemetry-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D264979
2025-10-08 16:19:19 +00:00
agoloman a0afdea225 Revert "Bug 1988716 - Part 3: Make numerous memory probes labeled with their process. r=mccr8,toolkit-telemetry-reviewers" for causing xpcshell failures @test_TelemetrySession.js.
This reverts commit 45faaf0ca3.

Revert "Bug 1988716 - Part 2: Add ProcessGet() function to labeled metrics. r=chutten,toolkit-telemetry-reviewers"

This reverts commit 0ec5b7dd75.

Revert "Bug 1988716 - Part 1: Make inference process distinguishable in our power usage data. r=florian,chutten,toolkit-telemetry-reviewers"

This reverts commit c6438c7d4a.
2025-10-07 18:52:09 +00:00
Bas Schouten 45faaf0ca3 Bug 1988716 - Part 3: Make numerous memory probes labeled with their process. r=mccr8,toolkit-telemetry-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D264979
2025-10-07 17:40:57 +00:00
Nika Layzell 7d39c30b5b Bug 1979013 - Part 2: Require nsITimer API callers to provide a nsACString, r=xpcom-reviewers,media-playback-reviewers,webrtc-reviewers,profiler-reviewers,dom-storage-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,mstange,emz,bwc,janv,emilio,padenot
This avoids the small overhead and potential for bugs from the previous
approach of assuming all `const char*` arguments passed to `nsITimer`
initializers are string literals, by instead requiring the argument to be a
`const nsACString&`. This involves changing all callsites to pass a `""_ns`
string literal down instead of a bare string literal.

It appears that while there were currently no buggy callers which
would've provided a dynamic string, there was at least one piece of code
(nsRepeatService::Start) which did pass down a raw char* which may be
dynamically allocated (all callers pass down `nsLiteralCString` so we're
actually OK here right now, but this was a footgun).

Differential Revision: https://phabricator.services.mozilla.com/D261032
2025-08-29 16:18:25 +00:00
iulian moraru f5d6849317 Revert "Bug 1979013: apply code formatting via Lando" for causing windows build bustages on MFTEncoder.cpp.
This reverts commit 8c929cc018.

Revert "Bug 1979013 - Part 2: Require nsITimer API callers to provide a nsACString, r=xpcom-reviewers,media-playback-reviewers,webrtc-reviewers,profiler-reviewers,dom-storage-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,mstange,emz,bwc,janv,emilio,padenot"

This reverts commit e01c0a6a32.

Revert "Bug 1979013 - Part 1: Eagerly fetch name for timer callbacks, r=xpcom-reviewers,mccr8"

This reverts commit 9f8e73c163.
2025-08-27 23:00:09 +00:00
Nika Layzell e01c0a6a32 Bug 1979013 - Part 2: Require nsITimer API callers to provide a nsACString, r=xpcom-reviewers,media-playback-reviewers,webrtc-reviewers,profiler-reviewers,dom-storage-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,mstange,emz,bwc,janv,emilio,padenot
This avoids the small overhead and potential for bugs from the previous
approach of assuming all `const char*` arguments passed to `nsITimer`
initializers are string literals, by instead requiring the argument to be a
`const nsACString&`. This involves changing all callsites to pass a `""_ns`
string literal down instead of a bare string literal.

It appears that while there were currently no buggy callers which
would've provided a dynamic string, there was at least one piece of code
(nsRepeatService::Start) which did pass down a raw char* which may be
dynamically allocated (all callers pass down `nsLiteralCString` so we're
actually OK here right now, but this was a footgun).

Differential Revision: https://phabricator.services.mozilla.com/D261032
2025-08-27 22:04:15 +00:00
Andrew McCreight 7f85db9188 Bug 1956525 - Only record memory.vsize on 32-bit builds. r=pbone
The maximum value telemetry can record is 1TB, and we are apparently
exceeding that very frequently. We could scale this down by, say, a factor
of 1000, but this metric feels rather useless to me nowadays, because
every WASM program we run reserves an entire 32-bits of address space.

Differential Revision: https://phabricator.services.mozilla.com/D253343
2025-06-16 22:17:21 +00:00
Florian Quèze 55c6fd3ae2 Bug 1950417 - Migrate memory histograms to Glean, making them also available for Firefox Android, r=chutten.
Differential Revision: https://phabricator.services.mozilla.com/D242035
2025-03-20 19:54:58 +00:00
Paul Bone a61acdde21 Bug 1917184 - Detect "idleness" more accurately r=mccr8
This patch adds a sliding window of recent calls to Poke() that is used to
determine if the process is idle.  This avoids running the memory telemetry
when the process should be idle.

Differential Revision: https://phabricator.services.mozilla.com/D232588
2025-01-07 06:56:32 +00:00
Paul Bone 6d06034bfd Bug 1917184 - Fix inverted comparison operator when checking cooldown r=mccr8
The original code here used the incorrect comparison operator.  I've fixed
it and reordered it to match the comment as closely as possible.  I've added
more to the comment to help make it clear why it is now correct.

Differential Revision: https://phabricator.services.mozilla.com/D232587
2025-01-07 06:56:31 +00:00
Paul Bone d35645f8ed Bug 1917184 - Don't collect memory telemetry in preallocated processes r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D225572
2025-01-07 06:56:31 +00:00
Paul Bone ddac802db2 Bug 1917184 - Change kTelemetryInterval's unit to seconds r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D225571
2025-01-07 06:56:31 +00:00
Paul Bone c9ad7ae4e0 Bug 1917184 - Use a constant rather than a magic number r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D225570
2025-01-07 06:56:30 +00:00
Paul Bone 557b510a75 Bug 1794529 - Report MEMORY_TOTAL only if there were no errors calculating it r=xpcom-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D209649
2024-05-10 04:12:24 +00:00
Paul Bone 661ead6df8 Bug 1894582 - Update the conditions for when to gather memory telemetry r=mccr8
* Rename DelayedInit() to Poke() to communicate that it can be called
   multiple times.  The new DelayedInit() is much smaller and only relevant
   to postpone gathering telemetry until after process startup.

 * Remove the observer callbacks that responded to cycle collection, replace
   them with a timer that is created after a task is executed.

 * Setup the memory telemetry timer regardless of extended telemetry

   Previously the memory telemetry was collected periodically only when
   extended telemetry was enabled, and if it wasn't enabled it was collected
   once (or more if DelayedInit() was called more than once, and it is).
   This could lead to different biases in the data between release and
   nightly.

 * Don't collect telemetry directly in Poke(), always use the
   timer.

 * Don't setup the timer if it would do nothing.

   If release telemetry isn't enabled then the only thing collected is
   MEMORY_TOTAL and that's only collected on the parent process.  So don't
   setup the timer on content processes.

Note that this is not a change in whether data is collected or not, since
GatherReports() always ran at least once before this change.  Furthermore
different settings change whether the telemetry is actually sent or not.

Differential Revision: https://phabricator.services.mozilla.com/D209201
2024-05-10 03:55:48 +00:00
Paul Bone 5acac4d380 Bug 1894582 - Unregister the shutdown observer during shutdown r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D209200
2024-05-10 03:55:47 +00:00
Paul Bone cc21836ce5 Bug 1894582 - Define "content-child-shutdown" as a constant r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D209199
2024-05-10 03:55:47 +00:00
Tamas Szentpeteri 83fcf15e93 Backed out changeset 3efd6c035ad4 (bug 1794529) for causing bp-nu bustages in MemoryTelemetry.h. CLOSED TREE 2024-05-09 12:52:21 +03:00
Paul Bone ff288bb17a Bug 1794529 - Report MEMORY_TOTAL only if there were no errors calculating it r=xpcom-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D209649
2024-05-09 04:49:22 +00:00
Paul Bone 512bc77dd6 Bug 1829127 - Add telemetry for PHC slop r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D192302
2023-11-06 04:59:33 +00:00
Peter Van der Beken 4314c23bc3 Bug 1522052 - remove nsIDOMChromeWindow. r=dom-core,webdriver-reviewers,devtools-reviewers,whimboo,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D34310
2023-06-23 14:21:05 +00:00
Paul Bone a86b79c4a8 Bug 1824655 - Avoid locking for the DOMArena jemalloc arena r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D173828
2023-06-09 05:06:49 +00:00
Paul Bone bab2dfabbe Bug 1831852 - Avoid extra call to jemalloc_stats in telemetry r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D177596
2023-05-11 04:40:44 +00:00
Jed Davis 986fa1ddc6 Bug 1763625 - Refactor how we access child process handles. r=nika,media-playback-reviewers,karlt
Differential Revision: https://phabricator.services.mozilla.com/D169777
2023-02-28 03:41:51 +00:00
Csoregi Natalia 62edd570d3 Backed out changeset dc92467cea22 (bug 1763625) for causing memory-related crashes and failures. CLOSED TREE 2023-02-28 00:52:22 +02:00
Jed Davis f65b5e7036 Bug 1763625 - Refactor how we access child process handles. r=nika,media-playback-reviewers,karlt
Differential Revision: https://phabricator.services.mozilla.com/D169777
2023-02-27 20:32:51 +00:00
Tawah Peggy 09d5c74e54 Bug 1794536 - Delete MemoryTelemetry::GetUniqueSetSize() and its decleration. r=pbone
Differential Revision: https://phabricator.services.mozilla.com/D160425
2022-11-20 22:04:22 +00:00
Paul Bone 3b67e9e77d Bug 1792500 - Document inaccuracy in MEMORY_TOTAL telemetry r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D158174
2022-09-27 06:14:57 +00:00
Paul Bone 2f27878131 Bug 1786860 - Use phys_footprint on MacOS to provide MEMORY_TOTAL r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D156309
2022-09-26 02:42:43 +00:00
Paul Bone 742e1cd030 Bug 1786864 - Add telemetry for how long we spend gathering memory telemetry r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D155805
2022-09-13 05:29:46 +00:00
Paul Bone 8d384e117a Bug 1779138 - Disable GatherTotalMemory on MacOS r=florian
In order to remove uses of ResidentUnique on MacOS this patch disables
GatherTotalMemory in its entirety (rather than provide inaccurate telemetry).
I will follow up with a patch that uses task_info phys_footprint to re-enable
it.

Differential Revision: https://phabricator.services.mozilla.com/D156048
2022-09-01 14:30:59 +00:00
criss 81479565bb Backed out changeset 49f976dc75d5 (bug 1779138) for causing Xpcshell failures on test_TelemetrySession.js. CLOSED TREE 2022-08-31 15:08:39 +03:00
Paul Bone f2bd5a4911 Bug 1779138 - Disable GatherTotalMemory on MacOS r=florian
In order to remove uses of ResidentUnique on MacOS this patch disables
GatherTotalMemory in its entirety (rather than provide inaccurate telemetry).
I will follow up with a patch that uses task_info phys_footprint to re-enable
it.

Differential Revision: https://phabricator.services.mozilla.com/D156048
2022-08-31 10:39:03 +00:00
Paul Bone ed6bd1bce2 Bug 1779138 - Don't query resident unique memory on MacOS r=mccr8
This patch disables calculating resident unique memory for telemetry, but
retains it for about:memory.  Telemetry has other memory measurements including a different fast-path.

Differential Revision: https://phabricator.services.mozilla.com/D155455
2022-08-27 00:56:33 +00:00
Mike Hommey ae3d2b8c65 Bug 1733308 - Fix non-unified builds errors in xpcom/base. r=xpcom-reviewers,mccr8
objdir/dist/include/mozilla/DeferredFinalize.h:30:1: error: unknown type name 'MOZ_NEVER_INLINE'
objdir/dist/include/mozilla/dom/BindingUtils.h:2776:5: error: no matching function for call to 'DeferredFinalize'
xpcom/base/AvailableMemoryTracker.cpp:55,40:: error: expected class name
xpcom/base/AvailableMemoryTracker.cpp:59,3:: error: 'AddRef' marked 'override' but does not override any member functions
xpcom/base/AvailableMemoryTracker.cpp:59,3:: error: 'QueryInterface' marked 'override' but does not override any member functions
xpcom/base/AvailableMemoryTracker.cpp:59,3:: error: 'Release' marked 'override' but does not override any member functions
xpcom/base/AvailableMemoryTracker.cpp:61,29:: error: unknown type name 'nsIHandleReportCallback'
xpcom/base/AvailableMemoryTracker.cpp:65,37:: error: use of undeclared identifier 'KIND_OTHER'
xpcom/base/AvailableMemoryTracker.cpp:65,49:: error: use of undeclared identifier 'UNITS_COUNT_CUMULATIVE'
xpcom/base/AvailableMemoryTracker.cpp:77,1:: error: invalid application of 'sizeof' to an incomplete type 'const QITableEntry []'
xpcom/base/AvailableMemoryTracker.cpp:77,1:: error: static_cast from '(anonymous namespace)::LowEventsReporter *' to 'nsISupports *', which are not related by inheritance, is not allowed
xpcom/base/AvailableMemoryTracker.cpp:77,38:: error: unknown type name 'nsIMemoryReporter'
xpcom/base/AvailableMemoryTracker.cpp:77,38:: error: use of undeclared identifier 'nsIMemoryReporter'
xpcom/base/AvailableMemoryTracker.cpp:187,3:: error: use of undeclared identifier 'RegisterLowMemoryEventsPhysicalDistinguishedAmount'
xpcom/base/AvailableMemoryWatcherWin.cpp:31,47:: error: base class has incomplete type
xpcom/base/AvailableMemoryWatcherWin.cpp:37,3:: error: unknown type name 'NS_DECL_NSIOBSERVER'
xpcom/base/AvailableMemoryWatcherWin.cpp:38,3:: error: 'virtual' can only appear on non-static member functions
xpcom/base/AvailableMemoryWatcherWin.cpp:38,3:: error: expected ';' at end of declaration list
xpcom/base/AvailableMemoryWatcherWin.cpp:38,3:: error: static_assert failed due to requirement 'std::is_convertible<mozilla::nsAvailableMemoryWatcher *, nsINamed *>::value' "nsITimerCallback implementations must also implement nsINamed"
xpcom/base/AvailableMemoryWatcherWin.cpp:39,3:: error: must use 'enum' tag to refer to type 'nsresult' in this scope
xpcom/base/AvailableMemoryWatcherWin.cpp:42,3:: error: must use 'enum' tag to refer to type 'nsresult' in this scope
xpcom/base/AvailableMemoryWatcherWin.cpp:102,1:: error: cannot initialize object parameter of type 'mozilla::nsAvailableMemoryWatcherBase' with an expression of type 'mozilla::nsAvailableMemoryWatcher'
xpcom/base/AvailableMemoryWatcherWin.cpp:102,1:: error: invalid application of 'sizeof' to an incomplete type 'const QITableEntry []'
xpcom/base/AvailableMemoryWatcherWin.cpp:102,1:: error: must use 'enum' tag to refer to type 'nsresult' in this scope
xpcom/base/AvailableMemoryWatcherWin.cpp:102,1:: error: static_cast from 'mozilla::nsAvailableMemoryWatcher *' to 'nsINamed *', which are not related by inheritance, is not allowed
xpcom/base/AvailableMemoryWatcherWin.cpp:102,1:: error: static_cast from 'mozilla::nsAvailableMemoryWatcher *' to 'nsIObserver *', which are not related by inheritance, is not allowed
xpcom/base/AvailableMemoryWatcherWin.cpp:102,1:: error: static_cast from 'mozilla::nsAvailableMemoryWatcher *' to 'nsITimerCallback *', which are not related by inheritance, is not allowed
xpcom/base/AvailableMemoryWatcherWin.cpp:103,59:: error: 'nsIObserver' does not refer to a value
xpcom/base/AvailableMemoryWatcherWin.cpp:103,59:: error: incomplete type 'nsIObserver' named in nested name specifier
xpcom/base/AvailableMemoryWatcherWin.cpp:140,45:: error: cannot initialize a parameter of type 'nsIObserver *' with an rvalue of type 'mozilla::nsAvailableMemoryWatcher *'
xpcom/base/AvailableMemoryWatcherWin.cpp:140,5:: error: must use 'enum' tag to refer to type 'nsresult' in this scope
xpcom/base/CycleCollectedJSRuntime.cpp:1605,7:: error: use of undeclared identifier 'PR_GetEnv'
xpcom/base/CycleCollectedJSRuntime.cpp:1605:7: error: use of undeclared identifier 'PR_GetEnv'
xpcom/base/DeferredFinalize.cpp:12,15:: error: out-of-line definition of 'DeferredFinalize' does not match any declaration in namespace 'mozilla'
xpcom/base/DeferredFinalize.cpp:12:15: error: out-of-line definition of 'DeferredFinalize' does not match any declaration in namespace 'mozilla'
xpcom/base/MemoryTelemetry.cpp:48,27:: error: unused variable 'kTotalMemoryCollectorTimeout' [-Werror,-Wunused-const-variable]
xpcom/base/MemoryTelemetry.cpp:48:27: error: unused variable 'kTotalMemoryCollectorTimeout' [-Werror,-Wunused-const-variable]
xpcom/base/nsErrorService.cpp:42,21:: error: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension [-Werror,-Wc++20-extensions]
xpcom/base/nsErrorService.cpp:42,21:: error: use of undeclared identifier 'MakeUnique'; did you mean 'mozilla::MakeUnique'?
xpcom/base/nsErrorService.cpp:42:21: error: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension [-Werror,-Wc++20-extensions]
xpcom/base/nsErrorService.cpp:42:21: error: use of undeclared identifier 'MakeUnique'; did you mean 'mozilla::MakeUnique'?
xpcom/base/nsMacPreferencesReader.mm:20:12: error: implicit instantiation of undefined template 'nsTSubstring<char16_t>'
xpcom/base/nsMacPreferencesReader.mm:24:60: error: use of undeclared identifier 'NSString'
xpcom/base/nsMacPreferencesReader.mm:24:69: error: expected expression
xpcom/base/nsMacPreferencesReader.mm:26:48: error: unknown type name 'NSArray'
xpcom/base/nsMacPreferencesReader.mm:28:30: error: use of undeclared identifier 'NSString'
xpcom/base/nsMacPreferencesReader.mm:29:30: error: no matching function for call to 'MakeStringSpan'
xpcom/base/nsMacPreferencesReader.mm:29:51: error: instance method '-UTF8String' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access]
xpcom/base/nsMacPreferencesReader.mm:30:22: error: instance method '-isKindOfClass:' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access]
xpcom/base/nsMacPreferencesReader.mm:30:37: error: receiver type 'int (*)(int)' is not 'id' or interface pointer, consider casting it to 'id' [-Werror,-Wreceiver-expr]
xpcom/base/nsMacPreferencesReader.mm:30:37: error: use of undeclared identifier 'NSNumber'; did you mean 'isnumber'?
xpcom/base/nsMacPreferencesReader.mm:30:46: error: instance method '-class' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access]
xpcom/base/nsMacPreferencesReader.mm:31:27: error: cannot initialize a parameter of type 'int64_t' (aka 'long long') with an rvalue of type 'id'
xpcom/base/nsMacPreferencesReader.mm:31:33: error: instance method '-longLongValue' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access]
xpcom/base/nsMacPreferencesReader.mm:32:37: error: use of undeclared identifier 'NSArray'
xpcom/base/nsMacPreferencesReader.mm:34:7: error: no matching function for call to 'EvaluateArray'
xpcom/base/nsMacPreferencesReader.mm:36:37: error: use of undeclared identifier 'NSDictionary'
xpcom/base/nsMacPreferencesReader.mm:38:7: error: no matching function for call to 'EvaluateDict'
xpcom/base/nsMacPreferencesReader.mm:44:60: error: use of undeclared identifier 'NSString'
xpcom/base/nsMacPreferencesReader.mm:44:69: error: expected expression
xpcom/base/nsSystemInfo.cpp:415,35:: error: no template named 'NotNull'; did you mean 'NonNull'?
xpcom/base/nsSystemInfo.cpp:419,25:: error: member reference type 'NonNull<IWSCProductList *>' is not a pointer; did you mean to use '.'?
xpcom/base/nsSystemInfo.cpp:419,27:: error: no member named 'get_Count' in 'mozilla::dom::NonNull<IWSCProductList *>'
xpcom/base/nsSystemInfo.cpp:426,19:: error: member reference type 'NonNull<IWSCProductList *>' is not a pointer; did you mean to use '.'?
xpcom/base/nsSystemInfo.cpp:426,21:: error: no member named 'get_Item' in 'mozilla::dom::NonNull<IWSCProductList *>'
xpcom/base/nsSystemInfo.cpp:484,17:: error: use of undeclared identifier 'ArrayLength'; did you mean 'mozilla::ArrayLength'?
xpcom/base/nsSystemInfo.cpp:484,47:: error: use of undeclared identifier 'ArrayLength'; did you mean 'mozilla::ArrayLength'?
xpcom/base/nsSystemInfo.cpp:487,36:: error: use of undeclared identifier 'ArrayLength'; did you mean 'mozilla::ArrayLength'?
xpcom/base/nsSystemInfo.cpp:500,10:: error: no matching function for call to 'EnumWSCProductList'
xpcom/base/nsSystemInfo.cpp:500,46:: error: use of undeclared identifier 'WrapNotNull'; did you mean 'mozilla::WrapNotNull'?
xpcom/base/nsTraceRefcnt.cpp:313,32:: error: use of undeclared identifier 'MakeUnique'
xpcom/base/nsTraceRefcnt.cpp:313:32: error: use of undeclared identifier 'MakeUnique'
xpcom/base/nsTraceRefcnt.cpp:461,19:: error: no matching member function for call to 'WithEntryHandle'
xpcom/base/nsTraceRefcnt.cpp:461:19: error: no matching member function for call to 'WithEntryHandle'
xpcom/base/nsTraceRefcnt.cpp:468,33:: error: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension [-Werror,-Wc++20-extensions]
xpcom/base/nsTraceRefcnt.cpp:468,33:: error: use of undeclared identifier 'MakeUnique'
xpcom/base/nsTraceRefcnt.cpp:468:33: error: use of undeclared identifier 'MakeUnique'
xpcom/base/nsTraceRefcnt.cpp:736,20:: error: use of undeclared identifier '_write'

Differential Revision: https://phabricator.services.mozilla.com/D127036
2021-10-01 01:49:16 +00:00
Toshihito Kikuchi f607b1ae8c Bug 1586236 - Use memory resource notifications to detect low memory scenarios on Windows. r=gsvelto
This patch uses the low memory resource notification facility to detect
scenarios where physical memory is running low without polling. This is a
significant change compared to the previous behavior which measured both
available virtual memory (only on 32-bit builds) and available commit space.

Since we're not trying to avoid OOMs anymore we don't save memory reports
anymore when hitting a low-memory condition.

Differential Revision: https://phabricator.services.mozilla.com/D110354
2021-03-31 15:18:05 +00:00
Nika Layzell c9854aedab Bug 1689182 - Collect content memory telemetry from the parent process, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D103239
2021-01-28 19:48:03 +00:00
Simon Giesecke 46908cfb51 Bug 1660470 - Add missing include directives/forward declarations. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Paul Bone 3e4bfd6fbe Bug 1482089 - pt 1. Remove DOM code for processing GCTelemetry r=mccr8
This code glues the JS GC code that creates the telemetry with a JS module
that processes it.  This patch removes this code unhooking these
components.

Differential Revision: https://phabricator.services.mozilla.com/D84163
2020-07-21 05:18:28 +00:00