Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
// have platform-specific restrictions:
has
uint64_t private_bytes;
Can't we have PMF on all platforms?
uint64_t phys_footprint_bytes;
physical? let's avoid abbreviations per style-guide
ProcessMetrics::GetMemoryInfo() const {
Document in the CL description that this changes Linux's FillOSMemoryDump from `GetResidentAndSharedPagesFromStatmFile()` to `ReadProcFileToTrimmedStringPairs()`. So someone can find this CL if it breaks some memory infra.
if (!info.has_value()) {
return 0;
}
return (info->vm_swap_bytes + info->resident_set_bytes) / 1024;
How about using a single ternary statement for such returns (ditto elsewhere)
```
return info.has_value() ?
(info->vm_swap_bytes + info->resident_set_bytes) / 1024 :
0;
```
auto process_metrics = [&]() {
if (handle == base::kNullProcessHandle) {
return base::ProcessMetrics::CreateCurrentProcessMetrics();
}
return base::ProcessMetrics::CreateProcessMetrics(handle);
}();
ternary here as well?
"task_vm_info must be small enough for 10.14 MIG interfaces");
Why does a copy of this+above also stick here?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
// have platform-specific restrictions:
Etienne Pierre-Dorayhas
Done
uint64_t private_bytes;
Can't we have PMF on all platforms?
I intentionally didn't expose this as PMF, and exposed the platform specific bits required to compute PMF in memory_instrumentation. This is because:
physical? let's avoid abbreviations per style-guide
Done
Document in the CL description that this changes Linux's FillOSMemoryDump from `GetResidentAndSharedPagesFromStatmFile()` to `ReadProcFileToTrimmedStringPairs()`. So someone can find this CL if it breaks some memory infra.
Done
if (!info.has_value()) {
return 0;
}
return (info->vm_swap_bytes + info->resident_set_bytes) / 1024;
How about using a single ternary statement for such returns (ditto elsewhere)
```
return info.has_value() ?
(info->vm_swap_bytes + info->resident_set_bytes) / 1024 :
0;
```
Done
auto process_metrics = [&]() {
if (handle == base::kNullProcessHandle) {
return base::ProcessMetrics::CreateCurrentProcessMetrics();
}
return base::ProcessMetrics::CreateProcessMetrics(handle);
}();
Etienne Pierre-Dorayternary here as well?
Done
"task_vm_info must be small enough for 10.14 MIG interfaces");
Why does a copy of this+above also stick here?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
Code-Review | +1 |
uint64_t private_bytes;
Etienne Pierre-DorayCan't we have PMF on all platforms?
I intentionally didn't expose this as PMF, and exposed the platform specific bits required to compute PMF in memory_instrumentation. This is because:
- The caller forwards those bits through mojo (see https://source.chromium.org/chromium/chromium/src/+/main:services/resource_coordinator/public/mojom/memory_instrumentation/memory_instrumentation.mojom;l=128?q=PlatformPrivateFootprint%20-file:out&ss=chromium)
- I also want to expose the platform specific counters in traces.
Acknowledged
// The |phys_footprint| field was introduced in 10.11.
Mention drop of support for this conditional in the CL description.
Where did you get the information about the min-supported MacOSX version? Refer to that too in the CL description (if it's public info)
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
+primiano@ for services/resource_coordinator
// The |phys_footprint| field was introduced in 10.11.
Mention drop of support for this conditional in the CL description.
Where did you get the information about the min-supported MacOSX version? Refer to that too in the CL description (if it's public info)
Relevant CL:
https://chromium-review.googlesource.com/c/chromium/src/+/2025948
That CL removes support for 10.11, but for some reason kept the conditional.
I updated the CL description linking the bug.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
Code-Review | +1 |
Owners-Override | +1 |
O-O for side-effects outside //base and resource_coordinator/
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
[memory] Move process memory info to base
This will be re-used in a follow-up in SystemMetricsSampler.
This should also replaced copied code in blink::MemoryUsageMonitor.
This changes Linux's FillOSMemoryDump from GetResidentAndSharedPagesFromStatmFile() (proc/pid/statm) to ReadProcFileToTrimmedStringPairs() (proc/pid/status)
This drops supports for pre MAC_OS_X_VERSION_10_11 missing
phys_footprint: https://issues.chromium.org/issues/40669926
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |