summaryrefslogtreecommitdiff
path: root/www/chromium/patches/patch-base_process_process_metrics_h
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/patches/patch-base_process_process_metrics_h')
-rw-r--r--www/chromium/patches/patch-base_process_process_metrics_h120
1 files changed, 0 insertions, 120 deletions
diff --git a/www/chromium/patches/patch-base_process_process_metrics_h b/www/chromium/patches/patch-base_process_process_metrics_h
deleted file mode 100644
index 07d8c68..0000000
--- a/www/chromium/patches/patch-base_process_process_metrics_h
+++ /dev/null
@@ -1,120 +0,0 @@
1Index: base/process/process_metrics.h
2--- base/process/process_metrics.h.orig
3+++ base/process/process_metrics.h
4@@ -36,7 +36,7 @@
5 #endif
6
7 #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
8- BUILDFLAG(IS_AIX)
9+ BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD)
10 #include <string>
11 #include <utility>
12 #include <vector>
13@@ -52,7 +52,7 @@ class Value;
14 // Full declaration is in process_metrics_iocounters.h.
15 struct IoCounters;
16
17-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
18+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
19 // Minor and major page fault counts since the process creation.
20 // Both counts are process-wide, and exclude child processes.
21 //
22@@ -107,7 +107,7 @@ class BASE_EXPORT ProcessMetrics {
23 // convenience wrapper for CreateProcessMetrics().
24 static std::unique_ptr<ProcessMetrics> CreateCurrentProcessMetrics();
25
26-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
27+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
28 // Resident Set Size is a Linux/Android specific memory concept. Do not
29 // attempt to extend this to other platforms.
30 BASE_EXPORT size_t GetResidentSetSize() const;
31@@ -134,7 +134,7 @@ class BASE_EXPORT ProcessMetrics {
32 [[nodiscard]] TimeDelta GetCumulativeCPUUsage();
33
34 #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
35- BUILDFLAG(IS_AIX)
36+ BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD)
37 // Emits the cumulative CPU usage for all currently active threads since they
38 // were started into the output parameter (replacing its current contents).
39 // Threads that have already terminated will not be reported. Thus, the sum of
40@@ -217,7 +217,7 @@ class BASE_EXPORT ProcessMetrics {
41 int GetOpenFdSoftLimit() const;
42 #endif // BUILDFLAG(IS_POSIX)
43
44-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
45+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
46 // Bytes of swap as reported by /proc/[pid]/status.
47 uint64_t GetVmSwapBytes() const;
48
49@@ -238,7 +238,7 @@ class BASE_EXPORT ProcessMetrics {
50 #endif // !BUILDFLAG(IS_MAC)
51
52 #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
53- BUILDFLAG(IS_AIX)
54+ BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD)
55 int CalculateIdleWakeupsPerSecond(uint64_t absolute_idle_wakeups);
56 #endif
57 #if BUILDFLAG(IS_APPLE)
58@@ -249,7 +249,7 @@ class BASE_EXPORT ProcessMetrics {
59 #endif
60
61 #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
62- BUILDFLAG(IS_AIX)
63+ BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD)
64 CPU::CoreType GetCoreType(int core_index);
65 #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) ||
66 // BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_AIX)
67@@ -274,7 +274,7 @@ class BASE_EXPORT ProcessMetrics {
68 uint64_t last_cumulative_disk_usage_ = 0;
69
70 #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
71- BUILDFLAG(IS_AIX)
72+ BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD)
73 // Same thing for idle wakeups.
74 TimeTicks last_idle_wakeups_time_;
75 uint64_t last_absolute_idle_wakeups_;
76@@ -317,7 +317,7 @@ BASE_EXPORT void IncreaseFdLimitTo(unsigned int max_de
77
78 #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
79 BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_AIX) || \
80- BUILDFLAG(IS_FUCHSIA)
81+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
82 // Data about system-wide memory consumption. Values are in KB. Available on
83 // Windows, Mac, Linux, Android and Chrome OS.
84 //
85@@ -352,7 +352,7 @@ struct BASE_EXPORT SystemMemoryInfoKB {
86 #endif
87
88 #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
89- BUILDFLAG(IS_AIX)
90+ BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD)
91 // This provides an estimate of available memory as described here:
92 // https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773
93 // NOTE: this is ONLY valid in kernels 3.14 and up. Its value will always
94@@ -367,7 +367,7 @@ struct BASE_EXPORT SystemMemoryInfoKB {
95 #endif
96
97 #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
98- BUILDFLAG(IS_AIX) || BUILDFLAG(IS_FUCHSIA)
99+ BUILDFLAG(IS_AIX) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
100 int buffers = 0;
101 int cached = 0;
102 int active_anon = 0;
103@@ -404,7 +404,7 @@ BASE_EXPORT bool GetSystemMemoryInfo(SystemMemoryInfoK
104 // BUILDFLAG(IS_FUCHSIA)
105
106 #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
107- BUILDFLAG(IS_AIX)
108+ BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD)
109 // Parse the data found in /proc/<pid>/stat and return the sum of the
110 // CPU-related ticks. Returns -1 on parse error.
111 // Exposed for testing.
112@@ -591,7 +591,7 @@ class BASE_EXPORT SystemMetrics {
113 FRIEND_TEST_ALL_PREFIXES(SystemMetricsTest, SystemMetrics);
114
115 size_t committed_memory_;
116-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
117+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
118 SystemMemoryInfoKB memory_info_;
119 VmStatInfo vmstat_info_;
120 SystemDiskInfo disk_info_;