Skip to content

Commit

Permalink
6
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed Nov 13, 2023
1 parent 0a8517e commit 47284f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions be/src/runtime/memory/mem_tracker_limiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,18 +163,18 @@ void MemTrackerLimiter::make_process_snapshots(std::vector<MemTracker::Snapshot>
snapshot.peak_consumption = -1;
(*snapshots).emplace_back(snapshot);

snapshot.type = "process virtual memory (from /proc VmSize VmPeak)";
snapshot.type = "process resident memory (from /proc VmRSS VmHWM)";
snapshot.label = "";
snapshot.limit = -1;
snapshot.cur_consumption = PerfCounters::get_vm_size();
snapshot.peak_consumption = PerfCounters::get_vm_peak();
snapshot.cur_consumption = PerfCounters::get_vm_rss();
snapshot.peak_consumption = PerfCounters::get_vm_hwm();
(*snapshots).emplace_back(snapshot);

snapshot.type = "process resident memory (from /proc VmRSS VmHWM)";
snapshot.type = "process virtual memory (from /proc VmSize VmPeak)";
snapshot.label = "";
snapshot.limit = -1;
snapshot.cur_consumption = PerfCounters::get_vm_rss();
snapshot.peak_consumption = PerfCounters::get_vm_hwm();
snapshot.cur_consumption = PerfCounters::get_vm_size();
snapshot.peak_consumption = PerfCounters::get_vm_peak();
(*snapshots).emplace_back(snapshot);
}

Expand Down

0 comments on commit 47284f0

Please sign in to comment.