Sample RSS memory usage. Statistics can then be output by calling :func:`memdump`.
()
| 61 | |
| 62 | |
| 63 | def sample_mem(): |
| 64 | """Sample RSS memory usage. |
| 65 | |
| 66 | Statistics can then be output by calling :func:`memdump`. |
| 67 | """ |
| 68 | current_rss = mem_rss() |
| 69 | _mem_sample.append(current_rss) |
| 70 | return current_rss |
| 71 | |
| 72 | |
| 73 | def _memdump(samples=10): # pragma: no cover |
no test coverage detected