aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2014-09-09 15:27:52 -0700
committerJason Evans <je@fb.com>2014-09-09 15:29:34 -0700
commit7c17e1670d7294db4b3c483ad7173dd056b42268 (patch)
treec4923510401d5854393ddcb152a6981d9209fb79 /bin
parenta2260c95cd717c06c28b61d40b2157254d594219 (diff)
downloadplatform_external_jemalloc_new-7c17e1670d7294db4b3c483ad7173dd056b42268.tar.gz
platform_external_jemalloc_new-7c17e1670d7294db4b3c483ad7173dd056b42268.tar.bz2
platform_external_jemalloc_new-7c17e1670d7294db4b3c483ad7173dd056b42268.zip
Fix threaded heap profile bug in pprof.
Fix ReadThreadedHeapProfile to pass the correct parameters to AdjustSamples.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pprof2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pprof b/bin/pprof
index 52da6004..87313f43 100755
--- a/bin/pprof
+++ b/bin/pprof
@@ -4167,7 +4167,7 @@ sub ReadThreadedHeapProfile {
my $thread = $2;
my ($n1, $s1, $n2, $s2) = ($3, $4, $5, $6);
my @counts = AdjustSamples($sample_adjustment, $sampling_algorithm,
- $n1, $s2, $n2, $s2);
+ $n1, $s1, $n2, $s2);
if ($thread eq "*") {
AddEntries($profile, $pcs, FixCallerAddresses($stack), $counts[$index]);
} else {