aboutsummaryrefslogtreecommitdiff
path: root/devel/electron12/files/patch-base_process_process__metrics.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron12/files/patch-base_process_process__metrics.cc')
-rw-r--r--devel/electron12/files/patch-base_process_process__metrics.cc38
1 files changed, 0 insertions, 38 deletions
diff --git a/devel/electron12/files/patch-base_process_process__metrics.cc b/devel/electron12/files/patch-base_process_process__metrics.cc
deleted file mode 100644
index 1975e97b1862..000000000000
--- a/devel/electron12/files/patch-base_process_process__metrics.cc
+++ /dev/null
@@ -1,38 +0,0 @@
---- base/process/process_metrics.cc.orig 2021-04-14 01:08:36 UTC
-+++ base/process/process_metrics.cc
-@@ -50,7 +50,7 @@ SystemMetrics SystemMetrics::Sample() {
- SystemMetrics system_metrics;
-
- system_metrics.committed_memory_ = GetSystemCommitCharge();
--#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID)
-+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD)
- GetSystemMemoryInfo(&system_metrics.memory_info_);
- GetVmStatInfo(&system_metrics.vmstat_info_);
- GetSystemDiskInfo(&system_metrics.disk_info_);
-@@ -69,7 +69,7 @@ std::unique_ptr<Value> SystemMetrics::ToValue() const
- std::unique_ptr<DictionaryValue> res(new DictionaryValue());
-
- 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());
-@@ -120,7 +120,7 @@ double ProcessMetrics::GetPlatformIndependentCPUUsage(
- }
- #endif
-
--#if defined(OS_APPLE) || defined(OS_LINUX) || defined(OS_CHROMEOS) || \
-+#if defined(OS_APPLE) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) || \
- defined(OS_AIX)
- int ProcessMetrics::CalculateIdleWakeupsPerSecond(
- uint64_t absolute_idle_wakeups) {
-@@ -133,7 +133,7 @@ int ProcessMetrics::GetIdleWakeupsPerSecond() {
- NOTIMPLEMENTED(); // http://crbug.com/120488
- return 0;
- }
--#endif // defined(OS_APPLE) || defined(OS_LINUX) || defined(OS_CHROMEOS) ||
-+#endif // defined(OS_APPLE) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) ||
- // defined(OS_AIX)
-
- #if defined(OS_APPLE)