Skip to content

Commit

Permalink
fix: rss bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Mar 29, 2023
1 parent 64c1f12 commit 7b1e758
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/perfmonUtil/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,11 @@ func getProcMem(client *adb.Device) *entity.ProcessInfo {
if err != nil {
processInfo.Error = append(processInfo.Error, err.Error())
}
vSize, _ := strconv.Atoi(status.VmSize)
pRss, _ := strconv.Atoi(status.VmRSS)
processInfo.MemInfo = &entity.ProcMemInfo{
VmSize: status.VmSize,
PhyRSS: status.VmRSS,
VmSize: vSize,
PhyRSS: pRss,
TotalPSS: pss,
TimeStamp: time.Now().UnixMilli(),
}
Expand Down

0 comments on commit 7b1e758

Please sign in to comment.