How can I test for a slice or map becoming too large?

前端 未结 0 1209
情话喂你
情话喂你 2021-01-06 02:24

I\'m looking for a way (in Go) to test that a code block isn\'t allocating too much memory at once.

For example, suppose we have two processors:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题