aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_process_process__metrics.cc
diff options
context:
space:
mode:
authorMatthias Wolf <freebsd@rheinwolf.de>2021-10-19 19:33:45 +0000
committerRene Ladan <rene@FreeBSD.org>2021-10-19 19:39:45 +0000
commit336f302a55ad11465a4255ae250715b962639010 (patch)
treec3e9a3cf7406fdf5fdb0ab3c60d132043615c2d7 /www/chromium/files/patch-base_process_process__metrics.cc
parent6996a61924c2899cf68683451707bbed5d6b9794 (diff)
downloadports-336f302a55ad11465a4255ae250715b962639010.tar.gz
ports-336f302a55ad11465a4255ae250715b962639010.zip
www/chromium: update to 94.0.4606.81
Diffstat (limited to 'www/chromium/files/patch-base_process_process__metrics.cc')
-rw-r--r--www/chromium/files/patch-base_process_process__metrics.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/www/chromium/files/patch-base_process_process__metrics.cc b/www/chromium/files/patch-base_process_process__metrics.cc
index 54e191de70b0..20a9ba831c6f 100644
--- a/www/chromium/files/patch-base_process_process__metrics.cc
+++ b/www/chromium/files/patch-base_process_process__metrics.cc
@@ -1,4 +1,4 @@
---- base/process/process_metrics.cc.orig 2021-06-09 22:13:52 UTC
+--- base/process/process_metrics.cc.orig 2021-09-14 01:51:47 UTC
+++ base/process/process_metrics.cc
@@ -17,7 +17,7 @@ namespace base {
@@ -9,7 +9,7 @@
defined(OS_AIX)
int CalculateEventsPerSecond(uint64_t event_count,
uint64_t* last_event_count,
-@@ -53,7 +53,7 @@ SystemMetrics SystemMetrics::Sample() {
+@@ -55,7 +55,7 @@ SystemMetrics SystemMetrics::Sample() {
SystemMetrics system_metrics;
system_metrics.committed_memory_ = GetSystemCommitCharge();
@@ -18,16 +18,16 @@
GetSystemMemoryInfo(&system_metrics.memory_info_);
GetVmStatInfo(&system_metrics.vmstat_info_);
GetSystemDiskInfo(&system_metrics.disk_info_);
-@@ -72,7 +72,7 @@ std::unique_ptr<Value> SystemMetrics::ToValue() const
- std::unique_ptr<DictionaryValue> res(new DictionaryValue());
+@@ -74,7 +74,7 @@ Value SystemMetrics::ToValue() const {
+ Value res(Value::Type::DICTIONARY);
- res->SetIntKey("committed_memory", static_cast<int>(committed_memory_));
+ res.SetIntKey("committed_memory", static_cast<int>(committed_memory_));
-#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID)
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD)
- std::unique_ptr<DictionaryValue> meminfo = memory_info_.ToValue();
- std::unique_ptr<DictionaryValue> vmstat = vmstat_info_.ToValue();
- meminfo->MergeDictionary(vmstat.get());
-@@ -123,7 +123,7 @@ double ProcessMetrics::GetPlatformIndependentCPUUsage(
+ Value meminfo = memory_info_.ToValue();
+ Value vmstat = vmstat_info_.ToValue();
+ meminfo.MergeDictionary(&vmstat);
+@@ -125,7 +125,7 @@ double ProcessMetrics::GetPlatformIndependentCPUUsage(
}
#endif
@@ -36,7 +36,7 @@
defined(OS_AIX)
int ProcessMetrics::CalculateIdleWakeupsPerSecond(
uint64_t absolute_idle_wakeups) {
-@@ -136,7 +136,7 @@ int ProcessMetrics::GetIdleWakeupsPerSecond() {
+@@ -138,7 +138,7 @@ int ProcessMetrics::GetIdleWakeupsPerSecond() {
NOTIMPLEMENTED(); // http://crbug.com/120488
return 0;
}