Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想知道系统内存(RAM)如何受到红宝石代码的影响。
让我们以下面给出的 ruby 代码为例:
i = 0 while i < 100 puts i = i +1 end
运行这段代码会消耗多少内存。我们可以测量这些东西。
运行此代码时,是否有任何工具可以分析内存中发生的情况?
谢谢