diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-25 23:45:47 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-25 23:45:47 (GMT) |
commit | 8e3708d88ba868eb2d915f0793c0bc0bb5f58b50 (patch) | |
tree | 36893b377fd02211512269ee557ba526479afb84 /Lib/tracemalloc.py | |
parent | 00773df9f30f10fddef40fec13827cca8a1b21bc (diff) | |
download | cpython-8e3708d88ba868eb2d915f0793c0bc0bb5f58b50.zip cpython-8e3708d88ba868eb2d915f0793c0bc0bb5f58b50.tar.gz cpython-8e3708d88ba868eb2d915f0793c0bc0bb5f58b50.tar.bz2 |
Issue #18874: allow to call tracemalloc.Snapshot.statistics(cumulative=True)
with traceback_limit=1
Diffstat (limited to 'Lib/tracemalloc.py')
-rw-r--r-- | Lib/tracemalloc.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/tracemalloc.py b/Lib/tracemalloc.py index 7780eca..d51f161 100644 --- a/Lib/tracemalloc.py +++ b/Lib/tracemalloc.py @@ -380,10 +380,6 @@ class Snapshot: if cumulative and key_type not in ('lineno', 'filename'): raise ValueError("cumulative mode cannot by used " "with key type %r" % key_type) - if cumulative and self.traceback_limit < 2: - raise ValueError("cumulative mode needs tracebacks with at least " - "2 frames, traceback limit is %s" - % self.traceback_limit) stats = {} tracebacks = {} |