]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: MemoryModel: keep /proc files open
authorRonen Friedman <rfriedma@redhat.com>
Mon, 17 Jun 2024 17:49:46 +0000 (12:49 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 18 Jun 2024 11:35:31 +0000 (06:35 -0500)
commita6e2a7c53dc21928aaa3a051833d3a09de3bc7d0
tree70fff1eb4f013ccf724cff8087caaf36edd92a8a
parente97223399d09ef6ae96e64feb4c6d6c85d5f9e72
common: MemoryModel: keep /proc files open

Allowing clients to hold on to the MemoryModel object for multiple
"snapshots", saving (per measurements) ~40% of the sampling run time.

Also: separating the parsing of /proc/maps (which consumes most of
the remaining execution time) into a separate function. This will allow
us to create a "no need for precise heap" fast mode (in a future
commit).

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/common/MemoryModel.cc
src/common/MemoryModel.h