From 43e87c1d6181246dff7aec1e23697ef8bee7406b Mon Sep 17 00:00:00 2001 From: Brendan Gregg Date: Wed, 11 Jan 2017 09:40:49 -0800 Subject: [PATCH] profile: increase unique stack default to 10k --- man/man8/profile.8 | 2 +- tools/profile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/man/man8/profile.8 b/man/man8/profile.8 index b9fad4a..fca31fd 100644 --- a/man/man8/profile.8 +++ b/man/man8/profile.8 @@ -49,7 +49,7 @@ Show stacks from kernel space only (no user space stacks). .TP \-\-stack-storage-size COUNT The maximum number of unique stack traces that the kernel will count (default -2048). If the sampled count exceeds this, a warning will be printed. +10240). If the sampled count exceeds this, a warning will be printed. .TP duration Duration to trace, in seconds. diff --git a/tools/profile.py b/tools/profile.py index c2ed6ea..1b99f43 100755 --- a/tools/profile.py +++ b/tools/profile.py @@ -90,7 +90,7 @@ parser.add_argument("-a", "--annotations", action="store_true", help="add _[k] annotations to kernel frames") parser.add_argument("-f", "--folded", action="store_true", help="output folded format, one line per stack (for flame graphs)") -parser.add_argument("--stack-storage-size", default=2048, +parser.add_argument("--stack-storage-size", default=10240, type=positive_nonzero_int, help="the number of unique stack traces that can be stored and " "displayed (default 2048)") -- 2.7.4