消息 [215035]
> For example. I want to write test like this:
>
> @unittest.skip("This test requires huge memory")
There is @test.support.bigmemtest(size=_2G, memuse=1) decorator which
is more convinient than the skip decorators. See
Lib/test/test_bigmem.py.
You can use tracemalloc to get the memory peak:
tracemalloc.get_traced_memory()[1] is the peak. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2014-03-28 10:28:56 | vstinner | 修改 | recipients:
+ vstinner, holdenweb, pitrou, benjamin.peterson, methane, eryksun |
| 2014-03-28 10:28:56 | vstinner | 链接 | issue21074 messages |
| 2014-03-28 10:28:55 | vstinner | 创建 | |
|