Process memory increases much faster with gflags +ust

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 02:36:55

The stack trace database is not the only impact of the ust flag. It also adds at least 32 bytes to each allocation, in order to store its stack trace id. This could explain your memory increase if lots of small allocations are involved. If you launch the process with an attached debugger or compiled the process with debug target, the windows heaps will be set in debug mode and the overhead per allocation will be even bigger.

You can set the maximum trace database size using /tracedb SizeInMB See the MSDN Gflags documentation for chapter and verse. By default there is no maximum size which most likely explains the behaviour you have seen.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!