Skip to content

Commit

Permalink
Modification in mem stat collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Himanshu Jagtap committed Mar 14, 2023
1 parent 794ed39 commit 5d5baae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime_profiler/runtime_profile_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (r *RuntimeProfileHandler) ExecutionCollectMemStats(runGC bool) {

// GetExecutionMemInGB function fetches collected mem in GB
func (r *RuntimeProfileHandler) GetExecutionMemInMB() uint64 {
return byteToMB(r.memStatsCollector.HeapAlloc)
return byteToMB(r.memStatsCollector.TotalAlloc)
}

// ExecutionTimeStart marks start of execution time
Expand Down

0 comments on commit 5d5baae

Please sign in to comment.